Branch Coverage

blib/lib/MCE/Channel/Mutex.pm
Criterion Covered Total %
branch 72 100 72.0


line true false branch
33 1 13 if $obj{'mp'}
38 1 13 if $obj{'mp'}
44 12 2 if $INC{'MCE/Child.pm'}
56 0 2 if defined $\
64 2 28 if $self->{'ended'}
66 0 28 if defined $\
68 14 14 if $p_mutex
75 14 14 if $p_mutex
82 16 2 if not $count or $count < 1
84 16 2 if ($count == 1) { }
89 0 16 if ($len < 0)
91 0 0 wantarray ? :
97 0 16 wantarray ? :
108 0 6 if ($len < 0)
119 2 0 wantarray ? :
125 20 2 if not $count or $count < 1
135 26 0 if $plen
136 0 26 if (not $len or $len < 0)
137 0 0 if defined $len and $len < 0
147 2 20 wantarray ? :
158 2 32 if $self->{'ended'}
162 0 32 if defined $\
164 10 22 if $p_mutex
167 10 22 if $p_mutex
179 0 10 if ($len < 0)
181 0 0 wantarray ? :
187 2 8 wantarray ? :
198 10 0 if $plen
199 0 10 if (not $len or $len < 0)
200 0 0 if defined $len and $len < 0
202 0 0 wantarray ? :
208 2 8 wantarray ? :
221 0 40 if defined $\
232 0 40 if $MCE::Signal::SIG
241 0 10 if $/ ne $LF
243 5 5 if $p_mutex
247 5 5 $p_mutex ? :
253 5 5 $p_mutex ? :
255 5 5 if $p_mutex
257 2 8 wantarray ? :
264 0 446 if $/ ne $LF
266 5 441 if $p_mutex
272 5 441 $p_mutex ? :
276 106 340 if $plen
277 340 106 unless ($len)
278 0 340 if $p_mutex
279 0 340 wantarray ? :
284 5 101 $p_mutex ? :
286 5 101 if $p_mutex
288 2 104 wantarray ? :