Condition Coverage

inc/Test/Builder.pm
Criterion Covered Total %
condition 25 252 9.9


and 3 conditions

line !l l&&!r l&&r condition
64 0 0 22 $epkg and not $todo
252 0 0 0 $ok and $chub->count
0 0 0 $ok and $chub->count and not $chub->no_ending
0 0 0 $ok and $chub->count and not $chub->no_ending and not $chub->ended
264 0 0 0 $count and $num_extra != 0
281 0 0 0 not $passed || $failed and $count
0 0 0 not $passed || $failed and $count and not $num_extra
291 0 0 0 $plan and $plan eq "SKIP"
314 0 0 0 $code and &reftype($code) eq "CODE"
338 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"
347 0 0 0 $start_pid != $$ and not $INC{'Test2/IPC.pm'}
369 0 0 0 not $count and !defined($plan) || "$plan" ne 'SKIP'
430 0 0 6 $format and $format->isa("Test2::Formatter::TAP")
561 0 0 0 $count and defined $num_tests
0 0 0 $count and defined $num_tests and $count != $num_tests
571 0 0 0 $self->expected_tests and $num_tests != $self->expected_tests
576 0 0 0 $ctx->hub->plan and $ctx->hub->plan eq "NO PLAN"
591 0 0 0 $plan and not $plan =~ /\D/
592 0 0 0 $plan and $plan eq "NO PLAN"
609 0 0 0 @call and $call[0]
615 0 0 0 $begin and $ctx->hub->meta("Test::Builder", {})->{'parent'}
647 12 0 0 0 + $name and $name =~ /^[\d\s]+$/
757 0 0 0 $numval != 0 && ($numval ne $val ? 1 : 0)
768 1 0 10 defined $got and defined $expect
787 0 0 0 defined $got and defined $expect
853 0 0 0 defined $got and defined $dont_expect
871 0 0 0 defined $got and defined $dont_expect
959 0 0 0 ($got eq $expect || $got == $expect) && ((defined $got xor defined $expect) || length $got != length $expect)
1000 0 0 0 defined $file and defined $line
1180 0 0 6 $format and $format->can("no_numbers")
0 0 6 $format and $format->can("no_numbers") and $format->can("set_no_numbers")
1198 0 0 0 $format and $format->can($set)
1289 0 0 0 $format and $format->isa("Test2::Formatter::TAP")
1303 0 0 0 $format and $format->isa("Test2::Formatter::TAP")
1317 0 0 0 $format and $format->isa("Test::Builder::Formatter")
1370 0 0 6 $format and $format->isa("Test2::Formatter::TAP")
1491 0 0 0 $meta and @$meta
1510 0 0 0 $meta and @$meta
1537 0 0 0 $hub == $active_hub and $e->isa("Test2::Event::Ok")
1599 0 0 0 $error and $opts{'die_on_fail'}
1631 6 0 0 not $hub->plan and $hub->count
1653 6 0 0 $real_exit_code and not $count
1659 0 3 3 $plan and "$plan" eq "SKIP"
1700 3 0 0 not $passed || $failed and $count
3 0 0 not $passed || $failed and $count and not $num_extra

or 2 conditions

line l !l condition
81 0 0 $result->{'type'} ||= "todo"
234 0 0 $self->{'Hub'} || (return $st_ctx->release)
258 0 0 $chub->plan || 0
602 3 0 $reason || 1
722 8 0 &blessed($$thing) or scalar $self->_try(sub {
727 8 0 overload::Method($$thing, $type) || (return)
1024 0 0 $why ||= ""
1051 0 0 $why ||= ""
1512 0 0 $ctx->trace->package || (return 0)
1543 0 0 $result->{'type'} ||= "todo"
1649 0 0 $$new ||= 254
1663 0 0 $$new ||= 255

or 3 conditions

line l !l&&r !l&&!r condition
21 0 0 6 Test2::API::test2_init_done() or Test2::API::test2_load_done()
80 0 0 0 $result->{'reason'} ||= $todo
105 6 0 0 not $Test::Builder::Test->{'Original_Pid'} or $Test::Builder::Test->{'Original_Pid'} == 0
161 0 0 0 $self->{'Hub'} || $ctx->hub
179 0 0 0 $name ||= "Child of " . $self->name
281 0 0 0 $passed || $failed
317 0 0 0 $name ||= "Child of " . $self->name
338 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"
369 0 0 0 !defined($plan) || "$plan" ne 'SKIP'
427 0 6 0 $self->{'Orig_Handles'} ||= do {
562 0 0 0 not $plan or $plan eq "NO PLAN"
770 0 0 1 defined $got || defined $expect
789 0 0 0 defined $got || defined $expect
805 0 0 0 $type eq "eq" or $type eq "ne"
855 0 0 0 defined $got || defined $dont_expect
873 0 0 0 defined $got || defined $dont_expect
1080 0 0 0 ($re, $opts) = $regex =~ m[^ /(.*)/ (\w*) $ ]sx or (undef, $re, $opts) = $regex =~ /^ m([^\w\s]) (.+) \1 (\w*) $/sx
1161 0 0 0 eval {
1471 0 0 0 $ctx->trace->package || $self->exported_to
0 0 0 $pack ||= $ctx->trace->package || $self->exported_to
1493 0 0 0 $pack ||= $ctx->trace->package
1542 0 0 0 $result->{'reason'} ||= $message
1628 6 0 0 $plan or $count
6 0 0 $plan or $count or $failed
1638 0 0 0 $$new ||= $real_exit_code
1645 0 0 0 $$new ||= $exit_code
1655 0 0 0 $$new ||= $real_exit_code
1671 0 0 0 $$new ||= $real_exit_code
1700 3 0 0 $passed || $failed
1717 0 0 3 $$new ||= $exit_code