Branch Coverage

blib/lib/Parallel/PreForkManager.pm
Criterion Covered Total %
branch 37 62 59.6


line true false branch
19 0 11 unless exists $Args->{'ChildHandler'}
31 33 22 if exists $Args->{$Arg}
51 0 7 if (exists $Self->{'ToChild'}{$pid})
67 0 246 unless ($Result)
74 0 246 if $DEBUG
77 50 196 if ($ResultMethod eq 'Startup')
78 50 0 if ($#{$$Self{'JobQueue'};} > -1) { }
95 96 100 if ($ResultMethod eq 'Completed')
97 96 0 if ($Result->{'Data'} and exists $Self->{'ParentCallback'})
102 46 50 if (exists $Result->{'JobsPerChildLimitReached'})
109 44 2 if ($#{$$Self{'JobQueue'};} > -1)
116 50 0 if ($#{$$Self{'JobQueue'};} > -1)
130 100 0 if ($ResultMethod eq 'ProgressCallback')
133 100 0 if (exists $Self->{'ProgressCallback'}{$Method}) { }
149 1 0 if ($Self->{'WaitComplete'})
168 0 11 if ($ActualJobs < $MaxChildren)
190 55 10 if ($pid) { }
10 0 elsif ($pid == 0) { }
205 0 10 if $DEBUG
235 0 10 if (exists $Self->{'ChildSetupHook'})
245 10 20 if (exists $Instructions->{'Shutdown'})
246 0 10 if $DEBUG
247 0 10 if (exists $Self->{'ChildTeardownHook'})
266 20 0 if (exists $Self->{'ChildHandler'})
276 0 20 if ($@)
277 0 0 if (exists $Self->{'ChildTeardownHook'})
288 20 0 if (exists $Self->{'JobsPerChild'})
290 10 10 if ($Self->{'JobsPerChild'} == 0)
299 0 0 if (exists $Self->{'ChildTeardownHook'})
303 0 0 if $DEBUG
325 296 22486 if ($Char eq "\n")