Branch Coverage

blib/lib/Test2/Tools/Spec.pm
Criterion Covered Total %
branch 60 178 33.7


line true false branch
27 12 27 if ($arg =~ s/^-//) { }
30 12 0 if ('Test2::Workflow::Runner'->can($arg)) { }
0 0 elsif ('Test2::Workflow::Task::Group'->can($arg)) { }
0 0 elsif ($arg eq 'root_args') { }
0 0 elsif ($arg eq 'runner_args') { }
51 0 42 if ($HANDLED{$caller[0]}++) { }
52 0 0 if keys %root_args or keys %runner_args
74 6 6 if (@{$runner->stack;}) { }
88 6 0 unless $build->is_root
101 2 36 unless $root->populated
123 32 59 defined $want ? :
125 32 54 if defined $want
127 0 54 unless my $current = current_build() || root_build($caller[0])
136 0 5 unless my $build = current_build() || root_build(\$caller[0])
140 0 5 unless $task->isa('Test2::Workflow::Task')
153 0 642 unless @stack
157 410 903 if $build->stack_stop
158 1250 63 unless my $new = $build->defaults->{$tool}
239 0 0 unless exists $props{$tool} or exists $stages{$tool}
241 0 18 unless my $build = current_build() || root_build($caller[0])
257 0 27 if defined wantarray
0 9 if defined wantarray
0 36 if defined wantarray
0 27 if defined wantarray
0 9 if defined wantarray
0 28 if defined wantarray
0 0 if defined wantarray
0 28 if defined wantarray
0 9 if defined wantarray
0 37 if defined wantarray
0 78 if defined wantarray
0 0 if defined wantarray
0 0 if defined wantarray
0 0 if defined wantarray
0 0 if defined wantarray
0 0 if defined wantarray
1 354 if defined wantarray
259 0 27 unless my $build = current_build() || root_build($caller[0])
0 9 unless my $build = current_build() || root_build($caller[0])
0 36 unless my $build = current_build() || root_build($caller[0])
0 27 unless my $build = current_build() || root_build($caller[0])
0 9 unless my $build = current_build() || root_build($caller[0])
0 28 unless my $build = current_build() || root_build($caller[0])
0 0 unless my $build = current_build() || root_build($caller[0])
0 28 unless my $build = current_build() || root_build($caller[0])
0 9 unless my $build = current_build() || root_build($caller[0])
0 37 unless my $build = current_build() || root_build($caller[0])
0 78 unless my $build = current_build() || root_build($caller[0])
0 0 unless my $build = current_build() || root_build($caller[0])
0 0 unless my $build = current_build() || root_build($caller[0])
0 0 unless my $build = current_build() || root_build($caller[0])
0 0 unless my $build = current_build() || root_build($caller[0])
0 0 unless my $build = current_build() || root_build($caller[0])
0 354 unless my $build = current_build() || root_build($caller[0])
262 27 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'after_all'))
9 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'after_case'))
36 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'after_each'))
27 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'around_all'))
9 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'around_case'))
28 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'around_each'))
0 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'async'))
28 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'before_all'))
9 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'before_case'))
37 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'before_each'))
78 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'case'))
0 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'iso'))
0 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'it'))
0 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'masync'))
0 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'mini'))
0 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'miso'))
354 0 if (my $defaults = defaults('package', $caller[0], 'tool', 'tests'))
264 0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
18 18 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 0 if defined $action->$attr
0 72 if defined $action->$attr
282 0 43 unless $ok