blib/lib/Memoize.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 22 | 27 | 81.4 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
33 | 0 | 17 | 55 | defined $fn and ref $fn eq 'CODE' || ref $fn eq '' |
43 | 60 | 3 | 5 | defined $normalizer and not ref $normalizer |
68 | 2 | 2 | 8 | $cache_opt eq "MERGE" and not ref $fullopt |
121 | 4 | 0 | 0 | tied %$cache and not tied(%$cache)->can("CLEAR") |
206 | 0 | 66 | 1 | defined $name and not defined &$name |
234 | 14 | 7 | 5 | $context eq "LIST" and $scalar_only{$package} |
line | l | !l | condition |
---|---|---|---|
58 | 33 | 35 | $options{'LIST_CACHE'} || '' |
66 | 56 | 72 | $options{"${context}_CACHE"} ||= "MEMORY" |
77 | 8 | 0 | shift @cache_opt_args || '' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
33 | 25 | 44 | 3 | ref $fn eq 'CODE' || ref $fn eq '' |