Branch Coverage

blib/lib/MCE/Mutex/Channel2.pm
Criterion Covered Total %
branch 17 52 32.6


line true false branch
28 0 0 if $INC{'threads.pm'}
33 46 0 if $$obj{$pid . 'b'}
46 0 24 $tid ? :
47 0 24 if $is_MSWin32
48 0 24 if $is_MSWin32
56 1 23 unless ((caller) =~ /^MCE:?/ and caller(1) =~ /^MCE:?/)
64 0 42 $tid ? :
66 42 0 unless ($$obj{$pid . 'b'})
68 0 42 if $is_MSWin32
77 0 0 $tid ? :
84 0 42 $tid ? :
87 42 0 if $$obj{$pid . 'b'}
93 0 46 $tid ? :
96 0 46 unless ref $code eq "CODE"
100 46 0 unless ($$obj{$pid . 'b'})
102 0 46 if $is_MSWin32
106 0 0 wantarray ? :
0 46 defined wantarray ? :
109 0 46 wantarray ? :
117 0 0 unless defined $timeout
118 0 0 if not &looks_like_number($timeout) or $timeout < 0
121 0 0 if $timeout < "0.0003"
126 0 0 unless $is_MSWin32
129 0 0 if $is_MSWin32 and MCE::Util::_sock_ready($obj->{'_w_sock'}, $timeout)
131 0 0 if (not $is_MSWin32) { }
136 0 0 unless $is_MSWin32