Branch Coverage

inc/Test2/API.pm
Criterion Covered Total %
branch 17 98 17.3


line true false branch
15 1 3 @_ ? :
28 0 1 unless eval 'END { test2_set_is_end() }; 1'
33 1 0 if ($] ge '5.014' or $ENV{'T2_CHECK_DEPTH'} or $Test2::API::DO_DEPTH_CHECK) { }
121 0 0 if @_
153 0 0 unless $formatter
154 0 0 if $INST->formatter_set
177 0 0 defined $want ? :
0 0 $want ? :
186 0 0 unless $ok
188 0 0 if $want
189 0 0 if defined $want
205 0 0 unless $ok
219 1 131 unless $INST->{'loaded'}
221 0 132 unless defined wantarray
230 0 132 if $hub->{'_context_acquire'}
238 0 132 $end_phase ? :
239 0 132 unless ($pkg or $end_phase)
240 0 0 unless $params{'fudge'}
249 0 7 if ($current and $params{'on_release'} and $depth_ok)
255 7 125 if $current and $depth_ok
268 0 125 if ($current)
269 0 0 unless (${$current->{'_aborted'};})
271 0 0 unless $current->{'_is_canon'}
273 0 0 unless $depth_ok
277 0 0 if $current->{'_is_canon'}
307 0 125 $params{'on_release'} ? :
316 0 125 if $hub->{'_context_init'}
318 0 125 if $params{'on_init'}
381 0 0 if (my $global_ipc = test2_ipc())
404 0 0 if (not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ or &blessed($err) and $err->isa('Test2::Hub::Interceptor::Terminator'))
416 0 0 unless $ok
418 0 0 if $ok and not $hub->no_ending and not $hub->ended
429 0 0 unless ref $params
435 0 0 unless $buffered
446 0 0 $parent->isa('Test2::Hub::Subtest') ? :
449 0 0 if ($buffered) { }
0 0 elsif (not $parent->format) { }
450 0 0 if (my $format = $hub->format)
451 0 0 $format->can('hide_buffered') ? :
452 0 0 if $hide
464 0 0 if ($inherit_trace)
482 0 0 if (not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ or &blessed($err) and &blessed($err) eq 'Test::Builder::Exception') { }
494 0 0 unless ($finished)
495 0 0 if (my $bailed = $hub->bailed_out)
500 0 0 if $code
503 0 0 if $ok and not $hub->no_ending and not $hub->ended
522 0 0 unless $e->pass
524 0 0 unless $ok
526 0 0 if defined $plan_ok and not $plan_ok