Branch Coverage

blib/lib/Parallel/PreForkManager.pm
Criterion Covered Total %
branch 53 64 82.8


line true false branch
19 1 730 unless exists $Args->{'ChildHandler'}
32 2617 3223 if exists $Args->{$Arg}
52 0 20797 if (exists $Self->{'ToChild'}{$pid})
68 0 148388 unless ($Result)
75 0 148388 if $DEBUG
78 47287 101101 if ($ResultMethod eq 'Startup')
79 46958 329 if ($#{$$Self{'JobQueue'};} > -1) { }
96 50442 50988 if ($ResultMethod eq 'Completed')
99 50182 260 if (exists $Self->{'ParentCallback'})
106 45139 5303 if (exists $Result->{'JobsPerChildLimitReached'})
113 44387 752 if ($#{$$Self{'JobQueue'};} > -1)
120 5141 162 if ($#{$$Self{'JobQueue'};} > -1)
134 50659 329 if ($ResultMethod eq 'ProgressCallback')
137 50658 1 if (exists $Self->{'ProgressCallback'}{$Method}) { }
153 125 0 if ($Self->{'WaitComplete'})
177 21 706 if ($ActualJobs < $MaxChildren)
199 49603 600 if ($pid) { }
600 0 elsif ($pid == 0) { }
215 0 600 if $DEBUG
246 30 570 if (exists $Self->{'ChildSetupHook'})
256 338 780 if (exists $Instructions->{'Shutdown'})
257 0 338 if $DEBUG
258 20 318 if (exists $Self->{'ChildTeardownHook'})
280 780 0 if (exists $Self->{'ChildHandler'})
290 9 671 if (my $Error = $@) { }
291 0 9 if $DEBUG
292 0 9 if (exists $Self->{'ChildTeardownHook'})
303 550 130 if (exists $Self->{'JobsPerChild'})
305 327 223 if ($Self->{'JobsPerChild'} == 0)
314 10 152 if (exists $Self->{'ChildTeardownHook'})
318 0 162 if $DEBUG
340 149986 14855508 if ($Char eq "\n")