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 52 0 if $$obj{$pid . "b"}
46 0 30 $tid ? :
47 0 30 if $is_MSWin32
48 0 30 if $is_MSWin32
56 1 29 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 52 $tid ? :
96 0 52 unless ref $code eq "CODE"
100 52 0 unless ($$obj{$pid . "b"})
102 0 52 if $is_MSWin32
106 0 0 wantarray ? :
0 52 defined wantarray ? :
109 0 52 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 !$is_MSWin32 ? :
136 0 0 unless $is_MSWin32