Branch Coverage

blib/arch/Proc/PID/File/Fcntl.pm
Criterion Covered Total %
branch 6 22 27.2


line true false branch
70 0 1 unless defined $$self{'path'}
71 0 1 unless $$self{'path'} =~ m[^/]
72 1 0 unless $$self{'path'} =~ /\.pid$/
77 0 1 unless sysopen $fd, $$self{'path'}, 66
81 0 1 unless fcntl $fd, 6, $flock
116 0 0 if ref $class
120 0 0 unless defined $opts{'path'}
121 0 0 unless $opts{'path'} =~ m[^/]
122 0 0 unless $opts{'path'} =~ /\.pid$/
124 0 0 unless sysopen my $fd, $opts{'path'}, 2
133 1 0 if ($$self{'fd'} and $$ == $$self{'pid'})