Branch Coverage

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


line true false branch
11 0 0 if @_
25 0 277 if ref $args ne 'HASH'
33 0 277 if scalar @work_units == 0
35 0 277 unless ref $coderef eq 'CODE'
36 0 277 if $max_children < 1 or $max_children =~ /\./
38 0 277 if ref $work_units[0]
52 0 277 if (not defined $pid) { }
252 25 elsif (not $pid) { }
72 3803 0 if ($package->get_type eq 'another') { }
0 0 elsif ($package->get_type eq 'del') { }
0 0 elsif ($package->get_type eq 'new') { }
74 6 3797 if ($another_count == $worker_count)
80 3747 50 if (scalar @work_units != 0)
90 0 0 unless $work_object eq $package->get_object
109 180 25 if ($package->get_type eq 'res') { }
25 0 elsif ($package->get_type eq 'end') { }
120 21 4 if (defined $sort_output)
141 21 0 unless defined $sort_code
160 246 10131 unless ($pid = fork)
161 123 123 unless (fork)
178 2 121 if ($@) { }
231 0 0 if defined $self->{'count'}
241 1 3 if $result->get_object eq $object_id
249 0 23 if defined $self->{'objects'}
267 0 1 if defined $self->{'times'}