Branch Coverage

blib/lib/Parallel/TaskExecutor/Task.pm
Criterion Covered Total %
branch 40 48 83.3


line true false branch
83 0 526 if ${^GLOBAL_PHASE} eq "DESTRUCT"
84 235 291 unless $Parallel::TaskExecutor::Task::PID == $this->{'parent'}
87 17 274 if ($this->running)
88 7 10 if ($this->{'runner'}) { }
122 199 100 if $this->{'state'} eq "done"
126 0 100 if $ret == -1
129 0 100 if $ret != $this->{'pid'}
131 9 90 $this->{'error'} ? :
160 2 254 unless $this->done
161 5 249 if defined $this->{'error'}
167 4 245 wantarray ? :
182 22 281 if $this->{'state'} eq "running"
202 2 254 if $this->{'state'} eq "running"
226 0 150050 if $this->{'state'} ne "running"
230 356 149694 if ($pid > 0 or $pid < -1)
241 433 23 if ($this->{'runner'})
242 418 15 unless $this->{'untracked'}
245 10 446 if ($Parallel::TaskExecutor::Task::CHILD_ERROR) { }
446 0 elsif ($this->{'channel'}) { }
246 9 1 if ($this->{'catch_error'}) { }
259 0 446 unless close $fh
266 0 446 if $Parallel::TaskExecutor::Task::EVAL_ERROR
270 432 23 if $this->{'runner'}
300 0 3 if $this->{'state'} ne "running"