Branch Coverage

lib/Cache/AgainstFile/Storable.pm
Criterion Covered Total %
branch 42 62 67.7


line true false branch
17 0 2 $^O eq 'MSWin32' ? :
40 0 8 if HAVE_FILE_POLICY
45 1 7 if ($locking eq 'Flock') { }
6 1 elsif ($locking eq 'AtomicWrite') { }
62 0 36 if HAVE_FILE_POLICY
75 0 36 if HAVE_FILE_POLICY
76 25 11 unless ($cache_fh->open($cache_filename))
83 34 2 unless ($$self{'options'}{'NoStat'} and not $stale)
85 9 25 if $cache_fh
88 28 8 $stale ? :
92 8 28 unless ($stale)
94 0 8 if ($@)
99 11 25 if $cache_fh
102 28 8 if ($stale)
105 0 28 unless defined $file_mtime
169 1 0 unless not defined $src_mt && defined $cache_mt
182 0 25 if HAVE_FILE_POLICY
183 1 24 unless opendir FH, $cache_dir
198 2 0 if $fh
199 0 2 if HAVE_FILE_POLICY
207 0 2 if HAVE_FILE_POLICY
215 0 26 if HAVE_FILE_POLICY
219 0 26 unless _backtouch($temp_filename, $mtime)
220 0 26 unless rename $temp_filename, $cache_filename
226 0 28 unless defined $utime
228 0 28 if HAVE_FILE_POLICY
235 0 6 if HAVE_FILE_POLICY
236 0 6 if (not $fh) { }
249 4 40 if (not -d $dir)
254 0 4 if $@
285 0 61 if 'File::Spec'->case_tolerant