Branch Coverage

blib/lib/MCE/Mutex/Flock.pm
Criterion Covered Total %
branch 13 80 16.2


line true false branch
24 0 0 if $INC{'threads.pm'}
29 0 0 if $obj->{$pid}
35 0 2 $tid ? :
36 0 2 if $obj->{$pid}
37 1 1 if $obj->{'_init'} and $obj->{'_init'} eq $pid
43 0 0 $tid ? :
44 0 0 if exists $obj->{$pid}
47 0 0 unless open $obj->{'_fh'}, "+>>:raw:stdio", $obj->{'path'}
67 1 1 if (not defined $obj{'path'}) { }
70 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 _) { }
71 0 0 if ($^O =~ /mswin|mingw|msys|cygwin/i) { }
73 0 0 $^O eq 'MSWin32' ? :
74 0 0 unless -d $tmp_dir
93 0 1 if ($^O eq 'MSWin32') { }
99 0 1 $tid ? :
104 0 1 unless open my $fh, "+>>:raw:stdio", $obj{'path'}
114 0 1 unless open my $fh, "+>>:raw:stdio", $obj{'path'}
123 0 0 $tid ? :
124 0 0 unless exists $obj->{$pid}
127 0 0 unless $obj->{$pid}
134 0 0 $tid ? :
140 0 0 $tid ? :
141 0 0 unless exists $obj->{$pid}
144 0 0 unless $obj->{$pid}
150 0 0 $tid ? :
153 0 0 if $obj->{$pid}
159 0 0 $tid ? :
162 0 0 unless ref $code eq "CODE"
164 0 0 unless exists $obj->{$pid}
168 0 0 unless ($obj->{$pid})
172 0 0 wantarray ? :
0 0 defined wantarray ? :
175 0 0 wantarray ? :
182 0 0 if $^O eq "MSWin32"
185 0 0 unless defined $timeout
186 0 0 if not &looks_like_number($timeout) or $timeout < 0
189 0 0 if $timeout < "0.0003"
195 0 0 $@ && $@ eq "timed out\n" ? :