Branch Coverage

blib/lib/Test2/Workflow/Runner.pm
Criterion Covered Total %
branch 113 142 79.5


line true false branch
49 62 15 unless defined $self->{'rand'}
52 0 77 @max ? :
54 77 0 if $max
56 68 9 unless (defined $self->{'filter'})
57 0 68 if (my $raw = $ENV{'T2_WORKFLOW'})
59 0 0 if ($raw =~ /^(.*)\s+(\d+)$/) { }
0 0 elsif ($raw =~ /^(\d+)$/) { }
77 33 44 if (my $task = delete $self->{'task'})
84 36 434 unless $self->{'pid'} == $$
85 0 434 unless $self->{'tid'} == 0
94 0 273 if ($type =~ /\+(.*)$/) { }
122 0 1114 unless my $stack = $self->{'stack'}
125 1149 1045 unless $state->{'subtest'}
144 1883 5105 unless ($state->{'started'}++)
148 649 1234 if (my $f = $self->{'filter'})
151 233 416 unless $in_var
152 25 624 if $filter->{'satisfied'}
155 649 1234 if $filter
157 151 1732 if ($skip)
170 1114 618 if ($task->flat) { }
172 1045 69 $st ? :
174 0 1114 if $task->todo
186 49 569 if $task->todo
203 196 422 if (defined $slot)
204 110 86 unless $st->finished
211 1678 5159 if ($state->{'ended'})
212 49 1629 if $state->{'todo'}
213 398 1280 if $state->{'subtest'}
215 0 1678 if $state->{'in_thread'}
216 30 1648 if (my $guard = delete $state->{'in_fork'})
226 422 4737 if ($state->{'subtest'} and not $state->{'subtest_started'}++)
231 1100 4059 if ($task->isa("Test2::Workflow::Task::Action"))
235 0 1100 unless ($state->{'PID'} == $$)
240 0 1100 unless $ok
246 1173 2886 if (not $state->{'stage'} or $state->{'stage'} eq 'BEFORE') { }
436 2450 elsif ($state->{'stage'} eq 'VARIANT') { }
1358 1092 elsif ($state->{'stage'} eq 'PRIMARY') { }
1092 0 elsif ($state->{'stage'} eq 'AFTER') { }
247 737 436 defined $state->{'before'} ? :
249 737 436 if (my $add = $task->before->[$state->{'before'}++]) { }
250 362 375 if ($add->around) { }
256 0 354 unless ($state->{'PID'} == $$)
261 0 354 unless ($ok and $complete)
264 0 0 $ok ? :
276 105 331 if (my $v = $task->variant)
282 436 922 unless (defined $state->{'order'})
283 0 436 defined $task->rand ? :
285 248 188 if $rand
289 976 382 if (defined $num) { }
297 710 382 defined $state->{'after'} ? :
298 710 382 if (my $add = $task->after->[$state->{'after'}++]) { }
299 354 356 if $add->around
315 0 1883 unless $task
316 0 1883 unless &blessed($task) and $task->isa("Test2::Workflow::Task")
318 33 1850 if ($task->isa("Test2::Workflow::Build"))
320 0 33 if @{$self->{'stack'};}
335 0 13 unless $stack and @$stack
346 0 618 if $state->{'task'}->skip
352 386 232 unless $iso or $async
355 18 214 unless ($self->{'max'} and $self->is_local)
357 0 18 unless $iso
368 88 214 if $st and not $st->finished
373 214 6 if $slot
378 0 232 unless my $st = $state->{'subtest'}
380 158 74 if (not $self->no_fork) { }
0 74 elsif (not $self->no_threads) { }
382 36 122 if (&blessed($out)) { }
411 110 12 if ($slot) { }
430 0 20289 if $st->finished
431 457 19832 if (not $st->active and $st->ready)
449 1078 25 if @{$self->{'subtests'};}