Branch Coverage

blib/lib/XAO/DO/Cache/Memory.pm
Criterion Covered Total %
branch 29 46 63.0


line true false branch
46 1 619 unless (defined $have_devel_size)
48 1 0 if ($@) { }
58 0 620 if ($have_devel_size) { }
69 0 620 if ($r eq 'ARRAY') { }
0 620 elsif ($r eq 'HASH') { }
620 0 elsif ($r eq 'SCALAR') { }
0 0 elsif ($r eq '') { }
108 0 8 unless $ed
110 4 4 if ($ed->{'next'}) { }
117 7 1 if ($ed->{'previous'}) { }
165 715 796 $exists ? :
178 3535 53 defined $_ ? :
203 620 182 $size ? :
211 0 1212 unless $count--
213 791 3 unless $size and $self->{'current_size'} + $nsz > $size or $expire and $lred->{'access_time'} + $expire < $now
228 791 11 if defined $self->{'most_recent'}
231 11 791 unless defined $self->{'least_recent'}
277 1 420 if defined $self->{'most_recent'} and $self->{'most_recent'} eq $key
286 420 1 if defined $previous
316 0 0 if $id ne $self->{'most_recent'}
338 0 0 if (defined $previous)
346 0 0 if $self->{'least_recent'} eq $key
348 0 0 if (defined $next)