blib/lib/Test2/API.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 72 | 125 | 57.6 |
line | l | !l | condition |
---|---|---|---|
424 | 0 | 5024 | ($!, $@, $?, $^E) = ($errno, $eval_error, $child_error, $extended_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 |
---|---|---|---|---|
62 | 0 | 0 | 0 | $init and $load |
289 | 249 | 0 | 18 | $ENV{'T2_FORMATTER'} and $ENV{'T2_FORMATTER'} =~ /^(\+)?(.*)$/ |
382 | 13361 | 0 | 0 | not $hub || exists $params{'hub'} and @$stack |
410 | 0 | 514 | 613 | $level >= 0 and not $pkg |
414 | 53 | 4996 | 29772 | not $end_phase and !$current || $depth <= $current->{'_depth'} + $params{'wrapped'} |
4996 | 8311 | 21461 | not $end_phase and !$current || $depth <= $current->{'_depth'} + $params{'wrapped'} and caller $depth + 1 | |
418 | 8333 | 5026 | 1 | $current and $params{'on_release'} |
5026 | 0 | 1 | $current and $params{'on_release'} and $depth_ok | |
424 | 8333 | 3 | 5024 | $current and $depth_ok |
611 | 54 | 1 | 0 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ |
55 | 0 | 0 | &blessed($err) and $err->isa('Test2::Hub::Interceptor::Terminator') | |
626 | 0 | 59 | 3 | $ok and not $hub->no_ending |
59 | 1 | 2 | $ok and not $hub->no_ending and not $hub->ended | |
690 | 118 | 1 | 0 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ |
119 | 0 | 0 | &blessed($err) and &blessed($err) eq 'Test::Builder::Exception' | |
722 | 0 | 2 | 0 | $bailed and not $buffered |
0 | 0 | 2 | $bailed and $buffered | |
735 | 0 | 0 | 120 | $ok and not $hub->no_ending |
0 | 0 | 120 | $ok and not $hub->no_ending and not $hub->ended | |
740 | 0 | 12 | 108 | $ok && $hub->is_passing |
759 | 9 | 110 | 1 | defined $plan_ok and not $plan_ok |
762 | 118 | 0 | 2 | $bailed and $buffered |
line | l | !l | condition |
---|---|---|---|
8 | 0 | 246 | $ENV{'TEST_ACTIVE'} ||= 1 |
403 | 13361 | 0 | ${^GLOBAL_PHASE} || 'NA' |
419 | 1 | 0 | $current->{'_on_release'} ||= [] |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
76 | 246 | 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 | |
183 | 353 | 0 | 0 | $STDOUT ||= clone_io(\*STDOUT) |
184 | 353 | 0 | 0 | $STDERR ||= clone_io(\*STDERR) |
346 | 2 | 1 | 0 | $hid ||= $STACK->top->hid |
376 | 10723 | 2638 | 0 | $params{'stack'} || $STACK |
377 | 1007 | 12354 | 0 | $params{'hub'} || (@$stack ? $stack->[-1] : $stack->top) |
382 | 13361 | 0 | 0 | $hub || exists $params{'hub'} |
404 | 53 | 0 | 13308 | $ENDING || $phase eq 'END' || $phase eq 'DESTRUCT' |
408 | 12846 | 0 | 515 | $pkg or $end_phase |
414 | 21018 | 8754 | 4996 | !$current || $depth <= $current->{'_depth'} + $params{'wrapped'} |
416 | 8361 | 4996 | 3 | $end_phase || !$current || $current->{'_depth'} < $depth |
611 | 0 | 0 | 55 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ or &blessed($err) and $err->isa('Test2::Hub::Interceptor::Terminator') |
649 | 105 | 1 | 16 | $params->{'buffered'} || $parent->{'buffered'} |
653 | 122 | 0 | 0 | $ctx->stack || $STACK |
690 | 0 | 0 | 119 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ or &blessed($err) and &blessed($err) eq 'Test::Builder::Exception' |
699 | 119 | 0 | 0 | $parent->is_local || $parent->ipc |