Branch Coverage

blib/lib/Tie/Cache/LRU/LinkedList.pm
Criterion Covered Total %
branch 23 36 63.8


line true false branch
43 0 1 unless defined $max_size
55 0 4 unless $self->EXISTS($key)
66 0 2 if ($self->EXISTS($key)) { }
78 1 1 if (defined $$self{'freshest'}) { }
88 1 1 unless (defined $$self{'stinkiest'})
116 0 2 unless $self->EXISTS($key)
119 2 0 if $$self{'freshest'} == $node
120 1 1 if $$self{'stinkiest'} == $node
166 1 2 if (@_) { }
172 0 1 if $$self{'size'} > $new_max_size
217 1 2 if defined $prev_node
218 1 2 if defined $next_node
231 0 4 unless ref $node
232 0 4 unless defined $node
236 3 1 if $$self{'size'} == 1 or $$self{'freshest'} == $node
240 1 0 if ($$self{'stinkiest'} == $node)
273 0 0 if defined $new_stink
276 0 0 if ($$self{'freshest'} eq $rotten)