Branch Coverage

blib/lib/MCE/Mutex/Channel.pm
Criterion Covered Total %
branch 17 68 25.0


line true false branch
29 0 0 if $INC{'threads.pm'}
34 0 0 if $obj->{$pid}
40 0 256 $tid ? :
41 0 256 if $obj->{$pid}
42 0 256 if $$obj{$pid . "b"}
44 210 46 if ($obj->{'_init_pid'} eq $pid)
45 17 193 !$use_pipe || $obj->{'impl'} eq 'Channel2' ? :
56 0 0 $tid ? :
61 0 0 if $mutex[$i]{$pid}
63 0 0 if $mutex[$i]{$pid . "b"}
79 0 431 $tid ? :
80 0 431 if $is_MSWin32
82 431 0 $use_pipe ? :
89 2 429 unless ((caller) =~ /^MCE:?/ and caller(1) =~ /^MCE:?/)
97 0 355 $tid ? :
99 355 0 unless ($obj->{$pid})
101 0 355 if $is_MSWin32
110 0 0 $tid ? :
117 0 355 $tid ? :
120 355 0 if $obj->{$pid}
126 0 0 $tid ? :
129 0 0 unless ref $code eq "CODE"
133 0 0 unless ($obj->{$pid})
135 0 0 if $is_MSWin32
139 0 0 wantarray ? :
0 0 defined wantarray ? :
142 0 0 wantarray ? :
150 0 0 unless defined $timeout
151 0 0 if not &looks_like_number($timeout) or $timeout < 0
154 0 0 if $timeout < "0.0003"
159 0 0 unless $is_MSWin32
162 0 0 if $is_MSWin32 and MCE::Util::_sock_ready($obj->{'_r_sock'}, $timeout)
164 0 0 !$is_MSWin32 ? :
169 0 0 unless $is_MSWin32