Branch Coverage

blib/lib/Parallel/Forker.pm
Criterion Covered Total %
branch 21 54 38.8


line true false branch
46 9 0 if $#_ >= 0
52 1 875 if $#_ >= 0
68 0 0 unless scalar @_ == 1
100 0 167 unless $_[0]
118 0 0 unless $process->is_reapable
127 113 566 if keys %{$$self{'_runable'};} > 0
128 542 24 if keys %{$$self{'_running'};} > 0
135 330 96 if (exists $self->{'_processes'}{$name}) { }
64 32 elsif (exists $self->{'_labels'}{$name}) { }
147 435 220 if $self->use_sig_child and not $self->{'_activity'}
148 0 220 unless (defined $self->use_sig_child)
149 0 0 if $^W and not $_Warned_Use_Sig_Child
163 220 0 unless ($self->{'max_proc'} and $nrunning >= $self->{'max_proc'})
166 16 223 if $self->{'max_proc'} and $nrunning >= $self->{'max_proc'}
173 24 168 if not $nrunning
179 414 0 if $procref->is_idle
202 0 0 unless defined $params{'filename'}
215 0 0 if ($did_print{$ra->{'name'}}{'level'} || 999) >= $level
217 0 0 unless ($did_print{$procref->{'name'}}{'level'})
228 0 0 if ($Parallel::Forker::Debug)
252 0 0 if ($lines[$row][$col])
257 0 0 if ($col_used_row_min)
261 0 0 if $row == $col
265 0 0 unless (($lines[$row][0] || ' ') =~ /^ /)
276 0 0 unless my $fh = 'IO::File'->new($params{'filename'}, 'w')
300 0 0 if not defined $rtn or defined $v and $v < $rtn
307 0 0 if not defined $rtn or defined $v and $v > $rtn