{
run_tests(build_class);
run_tests( build_class( lazy => 1, default => sub { [ 42, 84 ] } ) );
+ run_tests( build_class( trigger => sub { } ) );
# Will force the inlining code to check the entire arrayref when it is modified.
subtype 'MyArrayRef', as 'ArrayRef', where { 1 };
{
run_tests(build_class);
run_tests( build_class( lazy => 1 ) );
+ run_tests( build_class( trigger => sub { } ) );
# Will force the inlining code to check the entire hashref when it is modified.
subtype 'MyBool', as 'Bool', where { 1 };
{
run_tests(build_class);
run_tests( build_class( lazy => 1 ) );
+ run_tests( build_class( trigger => sub { } ) );
# Will force the inlining code to check the entire hashref when it is modified.
subtype 'MyInt', as 'Int', where { 1 };
{
run_tests(build_class);
run_tests( build_class( lazy => 1, default => sub { { x => 1 } } ) );
+ run_tests( build_class( trigger => sub { } ) );
# Will force the inlining code to check the entire hashref when it is modified.
subtype 'MyHashRef', as 'HashRef[Str]', where { 1 };
{
run_tests(build_class);
run_tests( build_class( lazy => 1 ) );
+ run_tests( build_class( trigger => sub { } ) );
# Will force the inlining code to check the entire hashref when it is modified.
subtype 'MyInt', as 'Int', where { 1 };
{
run_tests(build_class);
run_tests( build_class( lazy => 1, default => q{} ) );
+ run_tests( build_class( trigger => sub { } ) );
# Will force the inlining code to check the entire hashref when it is modified.
subtype 'MyStr', as 'Str', where { 1 };