Branch Coverage

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


line true false branch
31 12 27 if ($arg =~ s/^-//) { }
34 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') { }
55 0 43 if ($HANDLED{$caller[0]}++) { }
56 0 0 if keys %root_args or keys %runner_args
78 6 6 if (@{$runner->stack;}) { }
92 6 0 unless $build->is_root
101 2 37 unless $root->populated
123 32 60 defined $want ? :
125 32 55 if defined $want
127 0 55 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 646 unless @stack
157 410 910 if $build->stack_stop
158 1257 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 29 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 357 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 29 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 357 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"))
29 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"))
357 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 44 unless $ok