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 283 $tid ? :
41 0 283 if $obj->{$pid}
42 0 283 if $$obj{$pid . 'b'}
44 225 58 if ($obj->{'_init_pid'} eq $pid)
45 14 211 !$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 473 $tid ? :
80 0 473 if $is_MSWin32
82 473 0 $use_pipe ? :
89 2 471 unless ((caller) =~ /^MCE:?/ and caller(1) =~ /^MCE:?/)
97 0 371 $tid ? :
99 371 0 unless ($obj->{$pid})
101 0 371 if $is_MSWin32
110 0 0 $tid ? :
117 0 371 $tid ? :
120 371 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 if (not $is_MSWin32) { }
169 0 0 unless $is_MSWin32