Condition Coverage

blib/lib/Sub/Accessor/Small.pm
Criterion Covered Total %
condition 21 98 21.4


and 3 conditions

line !l l&&!r l&&r condition
19 8 0 0 !&HAS_SUB_UTIL() && eval { do { require Sub::Name } }
62 0 0 24 defined $export_opts->{'into'} and not ref $export_opts->{'into'}
158 43 0 3 not ref $target and $target =~ /\A[^\W0-9]\w+\z/
169 0 0 43 ref $target eq 'SCALAR' and not defined $$target
175 0 0 0 not ref $target and $target eq 1
242 0 0 0 defined $name and defined $me->{'package'}
266 0 0 0 not exists $me->{'accessor'} and defined $name
271 0 0 0 not exists $me->{'reader'} and defined $name
276 0 0 0 not exists $me->{'reader'} and defined $name
278 0 0 0 not exists $me->{'writer'} and defined $name
283 0 0 0 not exists $me->{'reader'} and defined $name
315 19 5 0 defined $me->{'isa'} and not ref $me->{'isa'}
331 20 4 0 defined $me->{'trigger'} and not ref $me->{'trigger'}
654 0 0 8 &blessed($type) and $type->can('coercion')
0 0 0 &blessed($type) and $type->can('coerce')
674 0 0 8 &blessed($coercion) and $coercion->can('can_be_inlined')
0 0 8 &blessed($coercion) and $coercion->can('can_be_inlined') and $coercion->can_be_inlined
0 0 8 &blessed($coercion) and $coercion->can('can_be_inlined') and $coercion->can_be_inlined and $coercion->can('inline_coercion')
685 0 0 0 &blessed($coercion) and $coercion->can('coerce')
701 0 0 10 &blessed($type) and $type->isa('Type::Tiny')
0 0 10 &blessed($type) and $type->isa('Type::Tiny') and $type->can_be_inlined
718 0 0 0 &blessed($type) and $type->can('can_be_inlined')
0 0 0 &blessed($type) and $type->can('can_be_inlined') and $type->can_be_inlined
729 0 0 0 &blessed($type) and $type->can('check')
0 0 0 &blessed($type) and $type->can('check') and $type->can('get_message')

or 2 conditions

line l !l condition
312 0 0 $me->{'isa'} ||= sub { $_[0]->DOES($does) if &blessed($_[0]); }

or 3 conditions

line l !l&&r !l&&!r condition
26 8 0 0 eval { do { require Hash::FieldHash; \&Hash::FieldHash::fieldhash } } || eval { do { require Hash::Util::FieldHash; \&Hash::Util::FieldHash::fieldhash } } || do { require Hash::Util::FieldHash::Compat; \&Hash::Util::FieldHash::Compat::fieldhash }
102 0 1 0 $me->{'traits'} or $me->{'handles_via'}
287 0 0 0 $me->{'builder'} or $me->{'default'}
568 0 0 5 $me->{'trigger'} or $me->{'weak_ref'}
613 1 0 7 $me->{'lazy'} or $me->{'trigger'}
0 0 7 $me->{'lazy'} or $me->{'trigger'} or $me->{'weak_ref'}
722 0 0 0 $type->can('inline_check') || $type->can('_inline_check')