Branch Coverage

blib/lib/Proc/Swarm.pm
Criterion Covered Total %
branch 29 50 58.0


line true false branch
14 0 0 if defined @_
28 0 283 if ref $args ne 'HASH'
36 0 283 if scalar @work_units == 0
38 0 283 unless ref $coderef eq 'CODE'
39 0 283 if $max_children < 1 or $max_children =~ /\./
41 0 283 if ref $work_units[0]
55 0 283 if (not defined $pid) { }
256 27 elsif (not $pid) { }
75 3805 0 if ($package->get_type eq 'another') { }
0 0 elsif ($package->get_type eq 'del') { }
0 0 elsif ($package->get_type eq 'new') { }
77 6 3799 if ($another_count == $worker_count)
83 3747 52 if (scalar @work_units != 0)
93 0 0 unless $work_object eq $package->get_object
112 209 27 if ($package->get_type eq 'res') { }
27 0 elsif ($package->get_type eq 'end') { }
123 23 4 if (defined $sort_output)
144 23 0 unless defined $sort_code
163 250 10157 unless ($pid = fork)
164 125 125 unless (fork)
181 2 123 if ($@) { }
240 0 0 if defined $$self{'count'}
250 1 3 if $result->get_object eq $object_id
258 0 25 if defined $$self{'objects'}
276 0 1 if defined $$self{'times'}