Branch Coverage

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


line true false branch
43 0 414 if exists $self->{'_forkref'}{'_processes'}{$self->{'name'}}
47 108 306 if (defined $self->{'label'})
48 0 108 if (ref $self->{'label'}) { }
97 96 298 if (ref $_)
103 0 414 if ($Parallel::Forker::Process::Debug || 0) >= 2
114 323 657 if $token =~ /^\s*$/
116 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) { }
121 0 0 if ($token eq '(')
122 0 0 if $need_op_next
123 0 0 if $need_op_next
135 394 32 if (defined $found[0]) { }
138 0 394 unless $aftref ne $self
139 103 291 if $need_op_next
140 103 291 if $need_op_next
142 32 362 if ($flip_op eq '!') { }
32 330 elsif ($flip_op eq '^') { }
158 64 330 if $between_op eq '||'
159 32 362 if $apo eq '!'
165 32 0 if ($ignerr) { }
166 32 0 if $Parallel::Forker::Process::Debug
178 123 291 unless $any_refs
179 123 291 unless $any_refs
185 0 414 if ($Parallel::Forker::Process::Debug || 0) >= 2
186 0 414 unless eval $set
193 0 414 unless $self->{'_state'} eq 'idle'
198 414 0 if $Parallel::Forker::Process::Debug
199 414 0 unless ($self->is_ready)
209 111 0 if ($self->is_idle or $self->is_ready) { }
210 111 0 if $Parallel::Forker::Process::Debug
224 0 223 if $self->{'pid'}
225 0 223 if $self->is_running
227 223 0 if $Parallel::Forker::Process::Debug
231 195 28 if (my $pid = fork) { }
246 0 0 unless $self->{'_state'} eq 'idle'
254 0 0 unless $self->is_reapable
256 0 0 if (defined $self->{'label'})
257 0 0 if (ref $self->{'label'}) { }
276 454 704 if $self->{'_state'} ne 'ready'
283 0 653 if ($Parallel::Forker::Process::Debug || 0) >= 2
288 0 604 if ($Parallel::Forker::Process::Debug || 0) >= 2
293 0 565 if ($Parallel::Forker::Process::Debug || 0) >= 2
297 258 446 if (&{$self->{'_runable_eqn'};}) { }
111 335 elsif (&{$self->{'_parerr_eqn'};}) { }
299 258 0 if $Parallel::Forker::Process::Debug
314 0 313 unless $self->{'pid'}
317 169 144 if ($got != 0)
318 169 0 if ($got > 0) { }
322 0 0 if $^W and not $_Warned_Waitpid
327 169 0 if $Parallel::Forker::Process::Debug
347 0 0 if $self->{'pid'}
354 0 0 unless $self->{'pid'}
357 0 0 if $Parallel::Forker::Process::Debug
379 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) { }
381 0 0 if $self->is_done and $self->status_ok
382 0 0 if $self->is_done and not $self->status_ok
389 0 0 if ($self->{'start_time'})
391 0 0 if ($self->{'end_time'})
398 0 0 if defined $self->{'_runafter_text'}
400 0 0 if defined $self->{'_runable_eqn_text'}
402 0 0 if defined $self->{'_parerr_eqn_text'}
425 0 0 if $pid ne $parent
427 0 0 if $parent_pids{$_} == $pid