Branch Coverage

blib/lib/Proc/Queue.pm
Criterion Covered Total %
branch 76 192 39.5


line true false branch
57 0 48 if ($o eq 'size' or $o eq 'debug' or $o eq 'trace' or $o eq 'delay' or $o eq 'weight' or $o eq 'ignore_childs' or $o eq 'ignore_children' or $o eq 'allow_excess')
65 0 48 unless $#opts > $i
72 0 48 if $debug
78 0 0 unless @_
81 0 0 if $debug
86 0 80 unless @_
89 0 80 unless $size >= 1
92 0 80 if $debug
97 0 21 unless @_
99 0 21 unless int $_[0] >= 1
102 0 21 if $debug
107 0 0 unless @_
109 0 0 if ($_[0]) { }
115 0 0 if $old_debug
121 0 0 unless @_
123 0 0 if ($_[0]) { }
125 0 0 if $debug
129 0 0 if $debug
135 0 11 unless @_
137 0 11 if ($_[0]) { }
139 0 0 if $debug
143 0 11 if $debug
149 0 0 unless @_
151 0 0 if ($_[0]) { }
153 0 0 if $debug
157 0 0 if $debug
166 694 0 unless $ignore_children
167 0 694 if @captured & 1
172 0 735 if $debug and $trace
173 0 735 if $debug
175 692 43 if ($w != -1) { }
176 692 0 if (exists $process{$w}) { }
178 0 692 if $debug
181 0 0 if $debug
185 0 43 if $debug
191 0 258 if $trace
192 129 129 if (@captured)
195 0 129 if $debug
203 0 1434 if $debug and $trace
204 0 1434 if $debug
206 1434 0 if ($w != -1) { }
207 349 1085 if (exists $process{$w}) { }
209 0 349 if $debug
212 0 1085 if $debug
216 0 0 if $debug
225 1085 88 unless _win and $pid < -1 or $pid > 0
232 0 463 if $trace
234 4736 4938 if $i & 1
236 202 4736 if ($pid == $captured[$i] or $pid == -1)
237 0 202 unless $#captured & 1
246 47 0 @_ ? :
247 0 0 defined $e ? :
0 47 if $trace
248 0 0 defined $e ? :
0 47 if $debug
256 0 1175 if $trace and $debug
257 0 1175 if ($delay > 0)
259 0 0 if ($wait > 0)
260 0 0 if $debug
266 1175 0 if (defined $f) { }
267 47 1128 if ($f == 0) { }
268 0 47 if $debug
278 0 1128 if $debug
282 0 0 if $debug
288 0 767 if $trace
289 1140 81 $allow_excess ? :
291 0 606 if $debug
293 606 0 if (($nw = _wait) != -1) { }
305 0 408 if $trace
310 0 84 if $trace
313 442 0 if (defined $pid) { }
314 0 442 if $debug
316 442 0 if (_win and $r < -1 or $r > 0) { }
317 0 442 if $debug
321 0 0 if $debug
336 0 538 if $trace and $debug
337 23 515 $now ? :
338 31 507 if (defined $f and $f == 0)
339 0 31 if $debug
344 0 0 if ($@) { }
345 0 0 if $debug
349 0 0 if $? and $debug
358 0 515 if $trace
364 0 23 if $trace
370 0 0 if $trace and $debug
383 0 0 $now ? :
384 0 0 if (defined $f and $f == 0)
385 0 0 if $debug
387 0 0 if $debug
395 0 0 if $trace
400 0 0 if $trace
405 0 84 if $trace
409 442 442 unless $i & 1
410 22 420 if (not defined $result[$i] or $result[$i])
411 0 22 if $debug
415 0 62 if $debug