Branch Coverage

blib/lib/MCE/Mutex/Channel.pm
Criterion Covered Total %
branch 17 64 26.5


line true false branch
29 0 0 if $INC{'threads.pm'}
33 0 256 $tid ? :
35 0 256 if $obj->{$pid}
36 0 256 if $$obj{$pid . "b"}
38 210 46 if ($obj->{'_init_pid'} eq $pid)
39 17 193 !$use_pipe || $obj->{'impl'} eq 'Channel2' ? :
50 0 0 $tid ? :
55 0 0 if $mutex[$i]{$pid}
57 0 0 if $mutex[$i]{$pid . "b"}
73 0 431 $tid ? :
74 0 431 if $is_MSWin32
76 431 0 $use_pipe ? :
83 2 429 unless ((caller) =~ /^MCE:?/ and caller(1) =~ /^MCE:?/)
91 0 355 $tid ? :
94 0 355 if $is_MSWin32
96 355 0 unless $obj->{$pid}
105 0 355 $tid ? :
108 355 0 if $obj->{$pid}
114 0 0 $tid ? :
117 0 0 unless ref $code eq "CODE"
121 0 0 if $is_MSWin32
123 0 0 unless $obj->{$pid}
126 0 0 wantarray ? :
0 0 defined wantarray ? :
131 0 0 wantarray ? :
139 0 0 unless defined $timeout
140 0 0 if not &looks_like_number($timeout) or $timeout < 0
143 0 0 if $timeout < "0.0003"
148 0 0 unless $is_MSWin32
151 0 0 if $is_MSWin32 and MCE::Util::_sock_ready($obj->{'_r_sock'}, $timeout)
153 0 0 !$is_MSWin32 ? :
158 0 0 unless $is_MSWin32