Branch Coverage

blib/lib/PID/File.pm
Criterion Covered Total %
branch 27 32 84.3


line true false branch
112 4 117 if $arg
114 13 108 unless (defined $$self{'file'})
124 3 118 unless ($$self{'file'} =~ m[^/])
166 0 19 unless open my $fh, '>', $temp
177 18 3 if (link $temp, $self->file)
186 1 17 if $args{'guard'}
191 1 2 if $attempts == $retries
207 34 26 if @_
222 46 2 if @_
240 6 3 unless open my $fh, $self->file
242 0 3 unless close $fh
244 3 0 if (kill 0, $pid)
267 0 16 unless $self->_created
314 0 10 unless $self->_created
316 6 4 if (not defined wantarray) { }
335 4 12 if $$self{'guard'}()