13 our $foo_default_called = 0;
18 default => sub { $foo_default_called++; 'foo' },
21 our $bar_default_called = 0;
27 default => sub { $bar_default_called++; 'bar' },
30 __PACKAGE__->meta->make_immutable;
35 is($Foo::foo_default_called, 1, "foo default was only called once during constructor");
39 is($Foo::bar_default_called, 1, "bar default was only called once when lazy attribute is accessed");