Branch Coverage

lib/Sub/Contract/Memoizer.pm
Criterion Covered Total %
branch 12 30 40.0


line true false branch
56 8 19 if ($CACHE_STATS{$_[0]}{'cache'}{'cache_size'} == 1)
68 16 12 if length $func > $length
79 0 28 if $max == -1
84 28 0 if ($calls)
103 1 21 if $CACHE_STATS_ON
118 0 8 if %args
119 0 8 unless defined $size and $size =~ /^\d+$/
125 7 1 if ($CACHE_STATS_ON and not exists $CACHE_STATS{$self->contractor})
137 0 0 exists $$_{'cache'} ? :
142 0 0 unless exists $$self{'cache'}
149 0 0 if not defined $args or ref $args ne 'ARRAY'
150 0 0 if not defined $results or ref $results ne 'ARRAY'
151 0 0 unless exists $$self{'cache'}
157 0 0 defined $_ ? :
158 0 0 defined $_ ? :