Condition Coverage

blib/lib/Test2/API.pm
Criterion Covered Total %
condition 52 81 64.2


and 2 conditions

line l !l condition
268 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')

and 3 conditions

line !l l&&!r l&&r condition
254 0 1 17 $level >= 0 and not $pkg
258 1 2244 0 not $end_phase and !$current || $depth <= $current->{'_depth'} + $params{'wrapped'}
90 1105 1049 not $end_phase and !$current || $depth <= $current->{'_depth'} + $params{'wrapped'} and caller $depth + 1
262 1104 92 0 $current and $params{'on_release'}
91 0 1 $current and $params{'on_release'} and $depth_ok
268 1104 2 90 $current and $depth_ok
423 1 0 2 &blessed($err) and $err->isa('Test2::Hub::Interceptor::Terminator')
426 2 8 2 $ok and not $hub->no_ending
10 1 1 $ok and not $hub->no_ending and not $hub->ended
470 40 0 0 not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/
491 0 0 40 $ok and not $hub->no_ending
0 0 40 $ok and not $hub->no_ending and not $hub->ended
496 0 8 32 $ok && $hub->is_passing
514 8 32 0 defined $plan_ok and not $plan_ok

or 2 conditions

line l !l condition
247 1197 0 ${^GLOBAL_PHASE} || 'NA'
263 1 0 $current->{'_on_release'} ||= []

or 3 conditions

line l !l&&r !l&&!r condition
27 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
208 2 1 0 $hid ||= $STACK->top->hid
237 0 1197 0 $params{'stack'} || $STACK
238 1 1140 56 $params{'hub'} || @$stack
248 1 0 1196 $ENDING || $phase eq 'END' || $phase eq 'DESTRUCT'
252 1195 0 2 $pkg or $end_phase
258 2058 96 90 !$current || $depth <= $current->{'_depth'} + $params{'wrapped'}
260 1104 90 2 $end_phase || !$current || $current->{'_depth'} < $depth
423 10 0 3 $ok or &blessed($err) and $err->isa('Test2::Hub::Interceptor::Terminator')
446 41 0 0 $ctx->stack || $STACK