Branch Coverage

blib/lib/Devel/Trace/Fork.pm
Criterion Covered Total %
branch 9 38 23.6


line true false branch
22 1 0 if (open $FH, '>', $FILE) { }
38 0 0 unless $Devel::Trace::TRACE
41 0 0 if ($_PID2 != $$)
50 0 0 if $^O eq 'MSWin32'
52 0 0 unless (defined $IGNORE_PACKAGES{$p})
57 0 0 unless (defined $f)
60 0 0 unless (defined $l)
63 0 0 if (not defined $code) { }
0 0 elsif (not defined $cde) { }
71 0 0 if (@O > $FLUSH)
79 0 1 if ($$ != $_PID and not -f "$FILE.x")
85 0 1 unless (open $FH_LOCK, '>>', "$FILE.x" and flock $FH_LOCK, 2)
91 1 0 if (open $FH, '>>', $FILE) { }
112 1 0 if ($$ == $_PID or $SORT_NEEDED)
113 0 1 if ($$ == $_PID and $ENV{'DTFORK_ERASE_ON_GOOD_EXIT'} and $? == 0)
116 0 0 if $ENV{'DTFORK_ERASE_ON_GOOD_EXIT'} > 0
121 1 0 if (open $FH_LOCK, '>>', "$FILE.x")
126 1 0 if (open $FH, '<', $FILE) { }
132 1 0 if (open $FH, '>', $FILE) { }