Branch Coverage

blib/lib/Memoize.pm
Criterion Covered Total %
branch 73 82 89.0


line true false branch
39 3 65 unless (defined $fn and ref $fn eq 'CODE' || ref $fn eq '')
45 22 43 ref $fn ? :
48 2 62 defined $proto ? :
58 0 64 $Memoize::Config{'usethreads'} ? :
62 5 59 if (defined $normalizer and not ref $normalizer)
68 14 50 exists $options{'INSTALL'} ? :
70 40 24 if (defined $install_name)
71 39 1 unless $install_name =~ /::/
83 26 101 ref $fullopt ? :
84 18 109 if ($cache_opt eq 'FAULT') { }
18 91 elsif ($cache_opt eq 'HASH') { }
89 2 elsif ($cache_opt eq '' or $IS_CACHE_TAG{$cache_opt}) { }
89 2 4 if ($context eq "LIST" and $scalar_only{$package})
105 3 57 if ($options{'SCALAR_CACHE'} eq 'MERGE') { }
5 52 elsif ($options{'LIST_CACHE'} eq 'MERGE') { }
145 23 97 ref $fullopt ? :
147 113 7 unless defined $shortopt and $shortopt eq "TIE"
148 1 6 if warnings::enabled("all")
151 2 2 if ($context eq "LIST" and $scalar_only{$module})
158 0 4 unless ($rc)
167 0 2 unless defined $info
170 0 4 if (tied %$cache and not tied(%$cache)->can('CLEAR')) { }
171 0 0 defined $info->{'NAME'} ? :
188 21 4 wantarray ? :
25 199 defined $normalizer ? :
194 48 176 if (wantarray) { }
196 4 44 unless $cache
197 19 25 if (exists $cache->{$argstr}) { }
206 4 172 unless $cache
207 109 63 if (exists $cache->{$argstr}) { }
209 3 106 $info->{'MERGED'} ? :
213 4 59 if ($info->{'MERGED'}) { }
228 2 21 unless (exists $memotable{$cref})
233 0 21 unless (defined $tabent)
237 15 6 if (defined $name)
253 29 66 if (ref $fn eq 'CODE') { }
66 0 elsif (not ref $fn) { }
256 1 65 if ($fn =~ /::/) { }
262 1 65 if (defined $name and not defined &$name)
271 0 94 if our $DEBUG
277 2 6 if (defined $funcname) { }