Branch Coverage

blib/lib/Proc/PID/File.pm
Criterion Covered Total %
branch 32 50 64.0


line true false branch
91 3 0 if ($pid and $pid != $$ and kill 0, $pid)
94 2 1 $self->verify($pid) ? :
193 1 2 if $args{'verify'}
198 2 1 if ($pid and $pid != $$ and kill 0, $pid)
199 2 0 $self->verify($pid) ? :
224 0 1 unless unlink $self->{'path'}
242 2 3 unless $self->{'verify'}
246 3 0 if ($^O =~ /linux|freebsd|cygwin/i)
248 2 1 if (not $me or $me eq '1')
250 0 2 if ($^O eq 'cygwin')
260 0 3 if defined $cols
282 0 13 unless sysopen $fh, $self->{'path'}, 66
284 0 13 unless flock $fh, 6
287 7 6 if @_ == 1
302 1 3 if (@_ == 1)
303 0 1 unless sysopen $fh, $self->{'path'}, 66
305 0 1 unless flock $fh, 6
311 0 4 unless close $fh
315 0 8 ref $_[0] ? :
9 8 !defined($_[0]) ? :
323 0 30 if $self->{'debug'} =~ /M/
325 0 30 if $self->{'debug'}
331 0 4 if (exists $INC{'threads.pm'})
332 0 0 if 'threads'->tid != 0
337 0 4 if $self->{'path'} and $pid and $pid == $$