Branch Coverage

blib/lib/Sys/PageCache.pm
Criterion Covered Total %
branch 24 38 63.1


line true false branch
30 11 2 if (not $offset) { }
0 2 elsif ($offset < 0) { }
36 0 2 if ($pa_offset != $offset)
46 10 3 if (not $length) { }
2 1 elsif ($length > $fsize - $offset) { }
59 0 13 unless open my $fh, "<", $file
64 13 0 $length < $MAX_CHUNK_SIZE ? :
70 0 13 if ($@) { }
77 13 26 if $k eq "page_size"
94 0 7 unless defined $advice
95 0 7 unless defined $length
96 0 7 unless defined $offset
97 0 7 unless defined $file
99 0 7 if $offset < 0
102 3 4 if ($length > $fsize - $offset)
113 0 7 unless open my $fh, "<", $file
122 0 7 if $@
126 0 7 if (defined $e)
131 7 0 $r == 0 ? :