blib/lib/Attribute/Default.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 13 | 24 | 54.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
43 | 3 | 0 | 2 | defined $subname and $subname eq 'exsub' |
76 | 0 | 0 | 10 | ref $defaults and ref $defaults ne 'CODE' |
297 | 0 | 0 | 10 | defined $defaults and ref $defaults eq 'ARRAY' |
0 | 3 | 7 | defined $defaults and ref $defaults eq 'ARRAY' and scalar @{$defaults;} == 1 | |
381 | 0 | 0 | 9 | ref $defaults and ref $defaults eq 'ARRAY' |
388 | 4 | 2 | 12 | my $type = ref $$defaults[$_] and not UNIVERSAL::isa($$defaults[$_], 'Attribute::Default::ExSub') |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
437 | 4 | 0 | 0 | $type eq ref $$args[$idx] or not defined $$args[$idx] |
457 | 3 | 9 | 0 | $type eq ref $$filled[$idx] or not defined $$filled[$idx] |