Branch Coverage

blib/lib/Cache/Memory/Entry.pm
Criterion Covered Total %
branch 40 50 80.0


line true false branch
35 241 0 unless ref $self
50 238 3 unless (--$$self{'store_entry'}{'rc'})
75 244 3 if (not $exists) { }
2 1 elsif (not exists $$entry{'handlelock'}) { }
96 5 242 if $expiry or $exists
97 3 244 if $exists
107 3 14 unless $self->exists
111 0 14 if $$entry{'handlelock'}
121 1 5 unless defined $$self{'store_entry'}{'data'}
134 0 2 unless $self->exists
135 0 2 unless my $exp_elem = $$self{'store_entry'}{'exp_elem'}
147 0 6 unless defined $$entry{'data'}
152 0 6 if ($exp_elem)
157 3 3 unless $time
178 2 5 if (not defined $$entry{'data'} or $mode =~ /^\+?>$/) { }
180 1 1 unless $writing
189 4 2 if ($writing) { }
190 0 4 if exists $$entry{'handlelock'}
208 0 3 unless $self->exists
211 2 1 if ref $validity
222 1 2 unless (defined $$entry{'data'})
244 2 2 if (defined $$entry{'handlelock'} and $$entry{'handlelock'} == $dataref) { }
251 2 2 if ($removed)
253 2 0 if $orig_size
260 2 0 if ($orig_size != $new_size)