Branch Coverage

blib/lib/MCE/Channel/MutexFast.pm
Criterion Covered Total %
branch 82 110 74.5


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 $\
233 0 12 if $MCE::Signal::SIG
242 0 6 if $/ ne $LF
244 3 3 if $p_mutex
248 3 3 $p_mutex ? :
252 2 4 if ($len)
255 1 1 $p_mutex ? :
258 3 3 if $p_mutex
260 2 4 $len ? :
267 0 6 if $/ ne $LF
269 3 3 if $p_mutex
275 3 3 $p_mutex ? :
279 6 0 if $plen
280 4 2 unless ($len)
281 2 2 if $p_mutex
282 4 0 if defined $len and $len == 0
283 0 0 wantarray ? :
288 1 1 $p_mutex ? :
290 1 1 if $p_mutex