blib/lib/Test2/API.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 52 | 81 | 64.2 |
line | l | !l | condition |
---|---|---|---|
269 | 0 | 90 | ($!, $@, $?) = ($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 |
---|---|---|---|---|
255 | 0 | 1 | 17 | $level >= 0 and not $pkg |
259 | 1 | 2247 | 0 | not $end_phase and !$current || $depth <= $current->{'_depth'} + $params{'wrapped'} |
90 | 1108 | 1049 | not $end_phase and !$current || $depth <= $current->{'_depth'} + $params{'wrapped'} and caller $depth + 1 | |
263 | 1107 | 92 | 0 | $current and $params{'on_release'} |
91 | 0 | 1 | $current and $params{'on_release'} and $depth_ok | |
269 | 1107 | 2 | 90 | $current and $depth_ok |
424 | 1 | 0 | 2 | &blessed($err) and $err->isa('Test2::Hub::Interceptor::Terminator') |
427 | 2 | 8 | 2 | $ok and not $hub->no_ending |
10 | 1 | 1 | $ok and not $hub->no_ending and not $hub->ended | |
471 | 40 | 0 | 0 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ |
492 | 0 | 0 | 40 | $ok and not $hub->no_ending |
0 | 0 | 40 | $ok and not $hub->no_ending and not $hub->ended | |
497 | 0 | 8 | 32 | $ok && $hub->is_passing |
515 | 8 | 32 | 0 | defined $plan_ok and not $plan_ok |
line | l | !l | condition |
---|---|---|---|
248 | 1200 | 0 | ${^GLOBAL_PHASE} || 'NA' |
264 | 1 | 0 | $current->{'_on_release'} ||= [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
28 | 57 | 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 | |
209 | 2 | 1 | 0 | $hid ||= $STACK->top->hid |
238 | 0 | 1200 | 0 | $params{'stack'} || $STACK |
239 | 1 | 1143 | 56 | $params{'hub'} || @$stack |
249 | 1 | 0 | 1199 | $ENDING || $phase eq 'END' || $phase eq 'DESTRUCT' |
253 | 1198 | 0 | 2 | $pkg or $end_phase |
259 | 2061 | 96 | 90 | !$current || $depth <= $current->{'_depth'} + $params{'wrapped'} |
261 | 1107 | 90 | 2 | $end_phase || !$current || $current->{'_depth'} < $depth |
424 | 10 | 0 | 3 | $ok or &blessed($err) and $err->isa('Test2::Hub::Interceptor::Terminator') |
447 | 41 | 0 | 0 | $ctx->stack || $STACK |