Branch Coverage

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


line true false branch
33 1 10 if $obj{'mp'}
38 1 10 if $obj{'mp'}
44 9 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 if (wantarray) { }
108 0 6 if ($len < 0)
119 2 0 if (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 if (wantarray) { }
158 2 29 if $self->{'ended'}
162 0 29 if defined $\
164 10 19 if $p_mutex
167 10 19 if $p_mutex
179 0 10 if ($len < 0)
181 0 0 wantarray ? :
187 2 8 if (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 if (wantarray) { }
229 0 34 if defined $\
235 0 34 if $sig
244 0 10 if $/ ne $LF
246 5 5 if $p_mutex
250 5 5 $p_mutex ? :
256 5 5 $p_mutex ? :
258 5 5 if $p_mutex
260 2 8 if (wantarray) { }
267 0 995 if $/ ne $LF
269 5 990 if $p_mutex
275 5 990 $p_mutex ? :
279 87 908 if $plen
280 908 87 unless ($len)
281 0 908 if $p_mutex
282 0 908 wantarray ? :
287 5 82 $p_mutex ? :
289 5 82 if $p_mutex
291 2 85 if (wantarray) { }