Branch Coverage

blib/lib/Parallel/PreForkManager.pm
Criterion Covered Total %
branch 52 64 81.2


line true false branch
19 1 726 unless exists $Args->{'ChildHandler'}
31 2603 3205 if exists $Args->{$Arg}
51 0 16569 if (exists $Self->{'ToChild'}{$pid})
67 0 147268 unless ($Result)
74 0 147268 if $DEBUG
77 46662 100606 if ($ResultMethod eq 'Startup')
78 46531 131 if ($#{$$Self{'JobQueue'};} > -1) { }
95 50162 50575 if ($ResultMethod eq 'Completed')
98 49902 260 if (exists $Self->{'ParentCallback'})
105 44755 5407 if (exists $Result->{'JobsPerChildLimitReached'})
112 43788 967 if ($#{$$Self{'JobQueue'};} > -1)
119 5262 145 if ($#{$$Self{'JobQueue'};} > -1)
133 50444 131 if ($ResultMethod eq 'ProgressCallback')
136 50444 0 if (exists $Self->{'ProgressCallback'}{$Method}) { }
152 125 0 if ($Self->{'WaitComplete'})
176 21 702 if ($ActualJobs < $MaxChildren)
198 48984 598 if ($pid) { }
598 0 elsif ($pid == 0) { }
213 0 598 if $DEBUG
243 30 568 if (exists $Self->{'ChildSetupHook'})
253 353 940 if (exists $Instructions->{'Shutdown'})
254 0 353 if $DEBUG
255 20 333 if (exists $Self->{'ChildTeardownHook'})
277 940 0 if (exists $Self->{'ChildHandler'})
287 9 831 if (my $Error = $@) { }
288 0 9 if $DEBUG
289 0 9 if (exists $Self->{'ChildTeardownHook'})
300 550 290 if (exists $Self->{'JobsPerChild'})
302 328 222 if ($Self->{'JobsPerChild'} == 0)
311 10 135 if (exists $Self->{'ChildTeardownHook'})
315 0 145 if $DEBUG
337 149201 14774879 if ($Char eq "\n")