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 796 if $#_ >= 0
68 0 0 unless scalar @_ == 1
100 0 167 unless $_[0]
118 0 0 unless $process->is_reapable
127 108 487 if keys %{$$self{'_runable'};} > 0
128 463 24 if keys %{$$self{'_running'};} > 0
135 330 96 if (exists $self->{'_processes'}{$name}) { }
64 32 elsif (exists $self->{'_labels'}{$name}) { }
147 346 225 if $self->use_sig_child and not $self->{'_activity'}
148 0 225 unless (defined $self->use_sig_child)
149 0 0 if $^W and not $_Warned_Use_Sig_Child
163 225 0 unless ($self->{'max_proc'} and $nrunning >= $self->{'max_proc'})
166 20 223 if $self->{'max_proc'} and $nrunning >= $self->{'max_proc'}
173 24 173 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