Branch Coverage

blib/lib/Parallel/Forker/Process.pm
Criterion Covered Total %
branch 67 142 47.1


line true false branch
42 0 414 if exists $self->{'_forkref'}{'_processes'}{$self->{'name'}}
46 108 306 if (defined $self->{'label'})
47 0 108 if (ref $self->{'label'}) { }
96 96 298 if (ref $_)
102 0 414 if ($Parallel::Forker::Process::Debug || 0) >= 2
113 323 657 if $token =~ /^\s*$/
115 64 593 if ($token eq '!' or $token eq '^') { }
32 561 elsif ($token eq '-') { }
0 561 elsif ($token eq '(' or $token eq ')') { }
71 490 elsif ($token eq '&') { }
64 426 elsif ($token eq '|') { }
426 0 elsif ($token =~ /^[a-z0-9_]*$/i) { }
120 0 0 if ($token eq '(')
121 0 0 if $need_op_next
122 0 0 if $need_op_next
134 394 32 if (defined $found[0]) { }
137 0 394 unless $aftref ne $self
138 103 291 if $need_op_next
139 103 291 if $need_op_next
141 32 362 if ($flip_op eq '!') { }
32 330 elsif ($flip_op eq '^') { }
157 64 330 if $between_op eq '||'
158 32 362 if $apo eq '!'
164 32 0 if ($ignerr) { }
165 32 0 if $Parallel::Forker::Process::Debug
177 123 291 unless $any_refs
178 123 291 unless $any_refs
184 0 414 if ($Parallel::Forker::Process::Debug || 0) >= 2
185 0 414 unless eval $set
192 0 414 unless $self->{'_state'} eq 'idle'
197 414 0 if $Parallel::Forker::Process::Debug
198 414 0 unless ($self->is_ready)
208 111 0 if ($self->is_idle or $self->is_ready) { }
209 111 0 if $Parallel::Forker::Process::Debug
223 0 223 if $self->{'pid'}
224 0 223 if $self->is_running
226 223 0 if $Parallel::Forker::Process::Debug
229 195 28 if (my $pid = fork) { }
244 0 0 unless $self->{'_state'} eq 'idle'
252 0 0 unless $self->is_reapable
254 0 0 if (defined $self->{'label'})
255 0 0 if (ref $self->{'label'}) { }
274 454 704 if $self->{'_state'} ne 'ready'
281 0 653 if ($Parallel::Forker::Process::Debug || 0) >= 2
286 0 604 if ($Parallel::Forker::Process::Debug || 0) >= 2
291 0 565 if ($Parallel::Forker::Process::Debug || 0) >= 2
295 258 446 if (&{$self->{'_runable_eqn'};}) { }
111 335 elsif (&{$self->{'_parerr_eqn'};}) { }
297 258 0 if $Parallel::Forker::Process::Debug
312 0 311 unless $self->{'pid'}
315 170 141 if ($got != 0)
316 170 0 if ($got > 0) { }
320 0 0 if $^W and not $_Warned_Waitpid
325 170 0 if $Parallel::Forker::Process::Debug
345 0 0 if $self->{'pid'}
352 0 0 unless $self->{'pid'}
355 0 0 if $Parallel::Forker::Process::Debug
377 0 0 if (not $linenum) { }
0 0 elsif ($linenum == 1) { }
0 0 elsif ($linenum == 2) { }
0 0 elsif ($linenum == 3) { }
0 0 elsif ($linenum == 4) { }
379 0 0 if $self->is_done and $self->status_ok
380 0 0 if $self->is_done and not $self->status_ok
387 0 0 if ($self->{'start_time'})
389 0 0 if ($self->{'end_time'})
396 0 0 if defined $self->{'_runafter_text'}
398 0 0 if defined $self->{'_runable_eqn_text'}
400 0 0 if defined $self->{'_parerr_eqn_text'}
423 0 0 if $pid ne $parent
425 0 0 if $parent_pids{$_} == $pid