Branch Coverage

blib/lib/MCE/Channel/MutexFast.pm
Criterion Covered Total %
branch 81 108 75.0


line true false branch
31 1 12 if $obj{'mp'}
36 1 12 if $obj{'mp'}
42 11 2 if $INC{'MCE/Child.pm'}
54 0 2 if defined $\
62 2 24 if $self->{'ended'}
64 0 24 if defined $\
66 12 12 if $p_mutex
73 12 12 if $p_mutex
80 14 2 if not $count or $count < 1
82 14 2 if ($count == 1) { }
87 0 14 if ($len < 0)
89 0 0 wantarray ? :
92 10 4 if $len
95 10 4 $len ? :
106 0 6 if ($len < 0)
111 0 6 unless $len
118 2 0 wantarray ? :
124 18 2 if not $count or $count < 1
134 24 0 if $plen
135 4 20 if (not $len or $len < 0)
136 0 4 if defined $len and $len < 0
137 4 0 if defined $len and $len == 0
147 2 18 wantarray ? :
158 2 36 if $self->{'ended'}
162 0 36 if defined $\
164 6 30 if $p_mutex
167 6 30 if $p_mutex
179 0 9 if ($len < 0)
181 0 0 wantarray ? :
184 2 7 if $len
187 2 7 $len ? :
198 6 0 if $plen
199 4 2 if (not $len or $len < 0)
200 0 4 if defined $len and $len < 0
202 4 0 if defined $len and $len == 0
203 0 0 wantarray ? :
222 0 12 if defined $\
234 0 6 if $/ ne $LF
236 3 3 if $p_mutex
240 3 3 $p_mutex ? :
244 2 4 if ($len)
247 1 1 $p_mutex ? :
250 3 3 if $p_mutex
252 2 4 $len ? :
259 0 6 if $/ ne $LF
261 3 3 if $p_mutex
267 3 3 $p_mutex ? :
271 6 0 if $plen
272 4 2 unless ($len)
273 2 2 if $p_mutex
274 4 0 if defined $len and $len == 0
275 0 0 wantarray ? :
280 1 1 $p_mutex ? :
282 1 1 if $p_mutex