Branch Coverage

blib/lib/File/HashCache.pm
Criterion Covered Total %
branch 15 24 62.5


line true false branch
17 0 32 unless (stat $_)[9]
28 4 37 if (/^#include\s+"([^"]+)"/)
29 0 0 $referrer ? :
0 3 unless my $included = read_file(my $name = $1)
45 1 24 unless $_ext eq ($ext //= $_ext)
53 19 0 if (not +($script = $$config{'cache'}{$name}) && -f $$script{'path'} or max_timestamp(@{$$script{'deps'};}) > $$script{'timestamp'})
60 7 12 ref $process_ext eq 'CODE' ? :
71 2 16 unless (-f $$script{'path'})
73 0 2 unless write_file($$script{'path'}, {'atomic', 1}, $processed)
74 0 2 unless write_file($$config{'cache_file'}, {'atomic', 1}, to_json($$config{'cache'}, {'pretty', 1}))
86 5 0 if -f $$config{'cache_file'}
89 0 5 unless $$config{'cache'} and ($$config{'cache'}{'VERSION'} || 0) == $cache_file_version