Branch Coverage

blib/lib/MCE/Mutex/Flock.pm
Criterion Covered Total %
branch 13 76 17.1


line true false branch
24 0 0 if $INC{'threads.pm'}
28 0 2 $tid ? :
30 0 2 if $obj->{$pid}
31 1 1 if $obj->{'_init'} and $obj->{'_init'} eq $pid
37 0 0 $tid ? :
38 0 0 if exists $obj->{$pid}
41 0 0 unless open $obj->{'_fh'}, "+>>:raw:stdio", $obj->{'path'}
61 1 1 if (not defined $obj{'path'}) { }
64 0 1 if ($ENV{'TEMP'} and -d $ENV{'TEMP'} and -w _) { }
0 1 elsif ($ENV{'TMPDIR'} and -d $ENV{'TMPDIR'} and -w _) { }
1 0 elsif (-d '/tmp' and -w _) { }
65 0 0 if ($^O =~ /mswin|mingw|msys|cygwin/i) { }
67 0 0 $^O eq 'MSWin32' ? :
68 0 0 unless -d $tmp_dir
87 0 1 if ($^O eq 'MSWin32') { }
93 0 1 $tid ? :
98 0 1 unless open my $fh, "+>>:raw:stdio", $obj{'path'}
108 0 1 unless open my $fh, "+>>:raw:stdio", $obj{'path'}
117 0 0 $tid ? :
118 0 0 unless exists $obj->{$pid}
121 0 0 unless $obj->{$pid}
129 0 0 $tid ? :
130 0 0 unless exists $obj->{$pid}
133 0 0 unless $obj->{$pid}
139 0 0 $tid ? :
142 0 0 if $obj->{$pid}
148 0 0 $tid ? :
151 0 0 unless ref $code eq "CODE"
153 0 0 unless exists $obj->{$pid}
157 0 0 unless $obj->{$pid}
160 0 0 wantarray ? :
0 0 defined wantarray ? :
165 0 0 wantarray ? :
172 0 0 if $^O eq "MSWin32"
175 0 0 unless defined $timeout
176 0 0 if not &looks_like_number($timeout) or $timeout < 0
179 0 0 if $timeout < "0.0003"
185 0 0 $@ && $@ eq "timed out\n" ? :