inc/Test2/API.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 24 | 92 | 26.0 |
line | l | !l | condition |
---|---|---|---|
255 | 0 | 7 | ($!, $@, $?) = ($errno, $eval_error, $child_error) and return bless({%$current, '_is_canon', undef, 'errno', $errno, 'eval_error', $eval_error, 'child_error', $child_error, '_is_spawn', [$pkg, $file, $line, $sub]}, 'Test2::API::Context') |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
241 | 0 | 0 | 0 | $level >= 0 and not $pkg |
245 | 0 | 7 | 184 | not $end_phase and !$current || $depth <= $current->{'_depth'} + $params{'wrapped'} |
7 | 125 | 59 | not $end_phase and !$current || $depth <= $current->{'_depth'} + $params{'wrapped'} and caller $depth + 1 | |
249 | 125 | 7 | 0 | $current and $params{'on_release'} |
7 | 0 | 0 | $current and $params{'on_release'} and $depth_ok | |
255 | 125 | 0 | 7 | $current and $depth_ok |
404 | 0 | 0 | 0 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ |
0 | 0 | 0 | &blessed($err) and $err->isa('Test2::Hub::Interceptor::Terminator') | |
418 | 0 | 0 | 0 | $ok and not $hub->no_ending |
0 | 0 | 0 | $ok and not $hub->no_ending and not $hub->ended | |
482 | 0 | 0 | 0 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ |
0 | 0 | 0 | &blessed($err) and &blessed($err) eq 'Test::Builder::Exception' | |
503 | 0 | 0 | 0 | $ok and not $hub->no_ending |
0 | 0 | 0 | $ok and not $hub->no_ending and not $hub->ended | |
508 | 0 | 0 | 0 | $ok && $hub->is_passing |
526 | 0 | 0 | 0 | defined $plan_ok and not $plan_ok |
line | l | !l | condition |
---|---|---|---|
6 | 0 | 1 | $ENV{'TEST_ACTIVE'} ||= 1 |
234 | 132 | 0 | ${^GLOBAL_PHASE} || 'NA' |
250 | 0 | 0 | $current->{'_on_release'} ||= [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
33 | 1 | 0 | 0 | $] ge '5.014' or $ENV{'T2_CHECK_DEPTH'} |
0 | 0 | 0 | $] ge '5.014' or $ENV{'T2_CHECK_DEPTH'} or $Test2::API::DO_DEPTH_CHECK | |
195 | 0 | 0 | 0 | $hid ||= $STACK->top->hid |
224 | 131 | 1 | 0 | $params{'stack'} || $STACK |
225 | 0 | 132 | 0 | $params{'hub'} || (@$stack ? $stack->[-1] : $stack->top) |
235 | 0 | 0 | 132 | $ENDING || $phase eq 'END' || $phase eq 'DESTRUCT' |
239 | 132 | 0 | 0 | $pkg or $end_phase |
245 | 138 | 46 | 7 | !$current || $depth <= $current->{'_depth'} + $params{'wrapped'} |
247 | 125 | 7 | 0 | $end_phase || !$current || $current->{'_depth'} < $depth |
404 | 0 | 0 | 0 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ or &blessed($err) and $err->isa('Test2::Hub::Interceptor::Terminator') |
439 | 0 | 0 | 0 | $ctx->stack || $STACK |
482 | 0 | 0 | 0 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ or &blessed($err) and &blessed($err) eq 'Test::Builder::Exception' |