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 272 if ($type =~ /\+(.*)$/) { }
122 0 1130 unless my $stack = $self->{'stack'}
125 1165 1061 unless $state->{'subtest'}
144 1898 5160 unless ($state->{'started'}++)
148 649 1249 if (my $f = $self->{'filter'})
151 233 416 unless $in_var
152 25 624 if $filter->{'satisfied'}
155 649 1249 if $filter
157 150 1748 if ($skip)
170 1130 618 if ($task->flat) { }
172 1061 69 $st ? :
174 0 1130 if $task->todo
186 44 574 if $task->todo
203 196 422 if (defined $slot)
204 110 86 unless $st->finished
211 1694 5214 if ($state->{'ended'})
212 44 1650 if $state->{'todo'}
213 398 1296 if $state->{'subtest'}
215 0 1694 if $state->{'in_thread'}
216 30 1664 if (my $guard = delete $state->{'in_fork'})
226 422 4792 if ($state->{'subtest'} and not $state->{'subtest_started'}++)
231 1108 4106 if ($task->isa("Test2::Workflow::Task::Action"))
235 0 1108 unless ($state->{'PID'} == $$)
240 0 1108 unless $ok
246 1189 2917 if (not $state->{'stage'} or $state->{'stage'} eq 'BEFORE') { }
444 2473 elsif ($state->{'stage'} eq 'VARIANT') { }
1373 1100 elsif ($state->{'stage'} eq 'PRIMARY') { }
1100 0 elsif ($state->{'stage'} eq 'AFTER') { }
247 745 444 defined $state->{'before'} ? :
249 745 444 if (my $add = $task->before->[$state->{'before'}++]) { }
250 362 383 if ($add->around) { }
256 0 354 unless ($state->{'PID'} == $$)
261 0 354 unless ($ok and $complete)
264 0 0 $ok ? :
276 105 339 if (my $v = $task->variant)
282 444 929 unless (defined $state->{'order'})
283 0 444 defined $task->rand ? :
285 256 188 if $rand
289 983 390 if (defined $num) { }
297 710 390 defined $state->{'after'} ? :
298 710 390 if (my $add = $task->after->[$state->{'after'}++]) { }
299 354 356 if $add->around
315 0 1898 unless $task
316 0 1898 unless &blessed($task) and $task->isa("Test2::Workflow::Task")
318 33 1865 if ($task->isa("Test2::Workflow::Build"))
320 0 33 if @{$self->{'stack'};}
335 0 21 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 90 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 20637 if $st->finished
431 464 20173 if (not $st->active and $st->ready)
449 1251 25 if @{$self->{'subtests'};}