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 {
62 0 0 24 defined $export_opts->{'into'} and not ref $export_opts->{'into'}
150 43 0 3 not ref $target and $target =~ /\A[^\W0-9]\w+\z/
161 0 0 43 ref $target eq "SCALAR" and not defined $$target
167 0 0 0 not ref $target and $target eq 1
234 0 0 0 defined $name and defined $me->{'package'}
258 0 0 0 not exists $me->{'accessor'} and defined $name
263 0 0 0 not exists $me->{'reader'} and defined $name
268 0 0 0 not exists $me->{'reader'} and defined $name
270 0 0 0 not exists $me->{'writer'} and defined $name
275 0 0 0 not exists $me->{'reader'} and defined $name
307 19 5 0 defined $me->{'isa'} and not ref $me->{'isa'}
323 20 4 0 defined $me->{'trigger'} and not ref $me->{'trigger'}
646 0 0 8 &blessed($type) and $type->can("coercion")
0 0 0 &blessed($type) and $type->can("coerce")
666 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")
677 0 0 0 &blessed($coercion) and $coercion->can("coerce")
693 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
710 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
721 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
304 0 0 $me->{'isa'} ||= sub {

or 3 conditions

line l !l&&r !l&&!r condition
26 8 0 0 eval {
103 0 1 0 $me->{'traits'} or $me->{'handles_via'}
279 0 0 0 $me->{'builder'} or $me->{'default'}
560 0 0 5 $me->{'trigger'} or $me->{'weak_ref'}
605 1 0 7 $me->{'lazy'} or $me->{'trigger'}
0 0 7 $me->{'lazy'} or $me->{'trigger'} or $me->{'weak_ref'}
714 0 0 0 $type->can('inline_check') || $type->can('_inline_check')