Branch Coverage

blib/lib/Cache/Meh.pm
Criterion Covered Total %
branch 31 40 77.5


line true false branch
17 3 6 if (defined $f)
28 1 10 if (defined $m)
40 3 3 if (defined $validity)
41 3 0 if ($validity > 0) { }
57 0 2 if (ref $coderef ne 'CODE') { }
76 1 2 if (exists $args{'only_memory'}) { }
2 0 elsif (exists $args{'filename'}) { }
89 3 0 if (exists $args{'validity'}) { }
96 2 1 if exists $args{'lookup'}
104 1 2 if $self->only_memory
108 1 1 if (-e $fname)
109 1 0 if (-r $fname) { }
129 4 2 if $self->only_memory
133 0 2 unless nstore($$self{'~~~~cache'}, $filename)
139 0 2 unless close $fh
142 0 2 unless move($filename, $fname)
152 3 3 if (exists $$self{'~~~~cache'}{$key})
154 1 2 if time < $i
157 4 1 if (exists $$self{'lookup'} and ref $$self{'lookup'} eq 'CODE')
163 1 0 if (exists $$self{'~~~~cache'}{$key})