Branch Coverage

blib/lib/Log/Dispatch/File/Locked.pm
Criterion Covered Total %
branch 10 18 55.5


line true false branch
16 30 30 if ($self->{'close_after_write'})
22 0 60 unless flock $fh, 2
26 0 60 unless seek $fh, 0, 2
29 0 60 if ($self->{'syswrite'}) { }
31 0 0 unless defined syswrite($fh, $p{'message'})
35 0 60 unless print $fh $p{'message'}
38 0 60 unless flock $fh, 8
39 30 30 if ($self->{'close_after_write'})
40 0 30 unless close $fh