Branch Coverage

blib/lib/MCE/Channel/Mutex.pm
Criterion Covered Total %
branch 71 98 72.4


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 $\
233 0 10 if $/ ne $LF
235 5 5 if $p_mutex
239 5 5 $p_mutex ? :
245 5 5 $p_mutex ? :
247 5 5 if $p_mutex
249 2 8 wantarray ? :
256 0 491 if $/ ne $LF
258 5 486 if $p_mutex
264 5 486 $p_mutex ? :
268 106 385 if $plen
269 385 106 unless ($len)
270 0 385 if $p_mutex
271 0 385 wantarray ? :
276 5 101 $p_mutex ? :
278 5 101 if $p_mutex
280 2 104 wantarray ? :