Branch Coverage

blib/lib/Tie/Cache/LRU/Array.pm
Criterion Covered Total %
branch 23 28 82.1


line true false branch
45 0 3 unless defined $max_size
69 0 6 unless exists $$self{'index'}{$key}
83 3 3 if $idx == $#{$cache;}
89 1 2 if $#$cache > $$self{'size'} * 2
100 1 9 if $#$cache > $$self{'size'} * 2
127 11 7 unless defined $node
128 0 7 if ($idx == $next_spot) { }
158 0 27 if (exists $$self{'index'}{$key}) { }
170 9 18 if $$self{'size'} > $$self{'max_size'}
179 0 5 unless exists $$self{'index'}{$key}
196 5 12 unless $$self{'size'}
202 43 41 if defined $node
221 5 13 if (@_) { }
226 1 4 if $$self{'size'} > $new_max_size