Benchmark-DKbench
view release on metacpan or search on metacpan
data/t/attributes/lazy_no_default.t view on Meta::CPAN
use strict;
use warnings;
use Test::More;
use Test::Fatal;
{
package Foo;
use Moose;
::like(
::exception{ has foo => (
is => 'ro',
lazy => 1,
);
},
qr/\QYou cannot have a lazy attribute (foo) without specifying a default value for it/,
'lazy without a default or builder throws an error'
);
}
done_testing;
( run in 1.123 second using v1.01-cache-2.11-cpan-54e63673c56 )