Branch Coverage

blib/lib/Parallel/Forker.pm
Criterion Covered Total %
branch 21 56 37.5


line true false branch
47 9 0 if $#_ >= 0
53 0 0 if $#_ >= 0
59 1 890 if $#_ >= 0
75 0 0 unless scalar @_ == 1
107 0 168 unless $_[0]
125 0 0 unless $process->is_reapable
134 114 575 if keys %{$$self{'_runable'};} > 0
135 551 24 if keys %{$$self{'_running'};} > 0
142 330 96 if (exists $self->{'_processes'}{$name}) { }
64 32 elsif (exists $self->{'_labels'}{$name}) { }
154 440 225 if $self->use_sig_child and not $self->{'_activity'}
155 0 225 unless (defined $self->use_sig_child)
156 0 0 if $^W and not $_Warned_Use_Sig_Child
170 225 0 unless ($self->{'max_proc'} and $nrunning >= $self->{'max_proc'})
173 20 223 if $self->{'max_proc'} and $nrunning >= $self->{'max_proc'}
180 24 173 if not $nrunning
186 414 0 if $procref->is_idle
209 0 0 unless defined $params{'filename'}
222 0 0 if ($did_print{$ra->{'name'}}{'level'} || 999) >= $level
224 0 0 unless ($did_print{$procref->{'name'}}{'level'})
235 0 0 if ($Parallel::Forker::Debug)
259 0 0 if ($lines[$row][$col])
264 0 0 if ($col_used_row_min)
268 0 0 if $row == $col
272 0 0 unless (($lines[$row][0] || ' ') =~ /^ /)
283 0 0 unless my $fh = 'IO::File'->new($params{'filename'}, 'w')
307 0 0 if not defined $rtn or defined $v and $v < $rtn
314 0 0 if not defined $rtn or defined $v and $v > $rtn