Branch Coverage

blib/lib/Parallel/Queue.pm
Criterion Covered Total %
branch 60 90 66.6


line true false branch
39 48 3469 if ($next)
41 42 6 if $job = &$next($_[0])
44 0 6 if $verbose
51 11 3464 unless @_
55 6 3458 if (blessed $item and $next = $item->can('next_job')) { }
3452 6 elsif (ref $item) { }
6 0 elsif ($item) { }
62 0 6 if $verbose
88 3452 6 if $job
91 126 3379 if $verbose
94 11 3494 unless $job
104 6 7 if $verbose
113 120 54 if $verbose
116 2 172 if ($result) { }
0 172 elsif ($@) { }
137 0 3320 unless (@_)
138 0 0 if $verbose
144 0 3320 unless my $job = &next_job
147 3240 80 if ((my $pid = fork) > 0) { }
80 0 elsif (defined $pid) { }
149 0 3240 if $verbose
165 0 80 if $verbose
170 0 80 $@ ? :
192 0 204 if $verbose
199 0 3132 if $verbose
210 0 3132 if ($?)
217 0 0 if (my $exit = $? >> 8) { }
0 0 elsif (my $signal = $? & 255) { }
227 0 0 $finish ? :
235 2942 190 if @_
248 0 217 unless looks_like_number $count
251 0 217 if $count < 0
256 204 13 $fork && $count ? :
275 2 88 unless @_
290 2 88 if $name =~ s/^no//u
293 85 5 if ('fork' eq $name) { }
0 5 elsif ('verbose' eq $name) { }
1 4 elsif ('finish' eq $name) { }
1 3 elsif ('debug' eq $name) { }
3 0 elsif ('export' eq $name) { }
307 1 0 if ($value)
317 1 2 unless looks_like_number $value
326 83 0 if ($fork and $^P and not $DB::fork_TTY)
332 90 0 if ($export)
346 0 0 if @_