Branch Coverage

blib/lib/Sys/Mmap.pm
Criterion Covered Total %
branch 15 24 62.5


line true false branch
210 0 3 if (scalar @_ < 3)
225 0 3 if (scalar @_ < 2)
241 2 1 if ($file) { }
242 0 2 unless (open $fh, "+>>", $file)
248 1 1 if ($leng > $fhsize)
250 0 1 unless print $fh "\0" x $fhsize
259 2 1 $file ? :
0 3 unless my $addr = &mmap($me, $leng, constant("PROT_READ", 0) | constant("PROT_WRITE", 0), $flags, $file ? $fh : *STDOUT)
289 0 10 if ($AUTOLOAD =~ /::(_?[a-z])/)
297 0 10 if $constname eq "DESTROY"
298 0 10 @_ ? :
299 10 0 if ($! == 0) { }