blib/lib/ensure.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 70 | 34.2 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
114 | 0 | 0 | 0 | not $implicit and $_[1] eq ':IMPLICIT' |
0 | 0 | 0 | $implicit and $_[1] ne ':IMPLICIT' | |
0 | 0 | 0 | $implicit and $_[1] ne ':IMPLICIT' and not $_[1] =~ /^!/ | |
127 | 0 | 0 | 0 | defined $_[$i] and $_[$i] =~ /^!/ |
147 | 0 | 0 | 1 | $ip eq 'main' and scalar @_ == 1 |
228 | 2 | 0 | 0 | $t eq 'CODE' and exists $undefined{$id} |
0 | 2 | 0 | $t eq '' and exists $undefined{'&' . $id} | |
347 | 0 | 1 | 1 | $^D || $^P and $pkg eq 'main' |
382 | 0 | 3 | 0 | defined $rs and defined $$rs || exists $no_scalar{"$rs"} |
435 | 0 | 2 | 0 | defined $rv and $type eq 'SCALAR' |
line | l | !l | condition |
---|---|---|---|
204 | 1 | 0 | stash_value($st, '@EXPORT') || [] |
205 | 1 | 0 | stash_value($st, '@EXPORT_OK') || [] |
206 | 0 | 1 | $no_ensure{$ep} || [] |
221 | 0 | 2 | $t or 'CODE' |
313 | 0 | 1 | $no_ensure{scalar caller} ||= [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
53 | 0 | 2 | 0 | $packages{$p} ||= stash($p) |
114 | 0 | 0 | 0 | $_[1] eq ':NONE' or not $implicit and $_[1] eq ':IMPLICIT' |
224 | 0 | 0 | 0 | $t eq '' || $t eq 'CODE' |
228 | 0 | 0 | 2 | exists $undefined{$name} or $t eq 'CODE' and exists $undefined{$id} |
0 | 0 | 2 | exists $undefined{$name} or $t eq 'CODE' and exists $undefined{$id} or $t eq '' and exists $undefined{'&' . $id} | |
347 | 0 | 0 | 2 | $^D || $^P |
364 | 0 | 2 | 14 | $name =~ /^(?:__|_?\W|_?\d)/ or $except{$name} |
2 | 0 | 14 | $name =~ /^(?:__|_?\W|_?\d)/ or $except{$name} or $undefined{$name} | |
376 | 0 | 11 | 3 | ref $rv or defined *$rv{'CODE'} |
382 | 1 | 0 | 2 | defined $$rs || exists $no_scalar{"$rs"} |