Condition Coverage

inc/Test/Builder.pm
Criterion Covered Total %
condition 24 253 9.4


and 3 conditions

line !l l&&!r l&&r condition
65 0 0 64 $epkg and not $todo
292 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
304 0 0 0 $count and $num_extra != 0
321 0 0 0 not $passed || $failed and $count
0 0 0 not $passed || $failed and $count and not $num_extra
331 0 0 0 $plan and $plan eq "SKIP"
354 0 0 0 $code and builtin::reftype($code) eq "CODE"
378 0 0 0 not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/
0 0 0 builtin::blessed($err) and builtin::blessed($err) eq "Test::Builder::Exception"
387 0 0 0 $start_pid != $$ and not $INC{'Test2/IPC.pm'}
409 0 0 0 not $count and !defined($plan) || "$plan" ne 'SKIP'
470 0 0 8 $format and $format->isa("Test2::Formatter::TAP")
601 0 0 0 $count and defined $num_tests
0 0 0 $count and defined $num_tests and $count != $num_tests
611 0 0 0 $self->expected_tests and $num_tests != $self->expected_tests
616 0 0 0 $ctx->hub->plan and $ctx->hub->plan eq "NO PLAN"
631 0 0 0 $plan and not $plan =~ /\D/
632 0 0 0 $plan and $plan eq "NO PLAN"
649 0 0 0 @call and $call[0]
655 0 0 0 $begin and $ctx->hub->meta(__PACKAGE__, {})->{'parent'}
689 49 0 0 0 + $name and $name =~ /^[\d\s]+$/
799 0 0 0 $numval != 0 && ($numval ne $val ? 1 : 0)
810 0 0 5 defined $got and defined $expect
829 0 0 0 defined $got and defined $expect
895 0 0 0 defined $got and defined $dont_expect
913 0 0 0 defined $got and defined $dont_expect
1039 0 0 7 defined $file and defined $line
1222 0 0 8 $format and $format->can("no_numbers")
0 0 8 $format and $format->can("no_numbers") and $format->can("set_no_numbers")
1240 0 0 0 $format and $format->can($set)
1331 0 0 0 $format and $format->isa("Test2::Formatter::TAP")
1345 0 0 0 $format and $format->isa("Test2::Formatter::TAP")
1359 0 0 0 $format and $format->isa("Test::Builder::Formatter")
1412 0 0 8 $format and $format->isa("Test2::Formatter::TAP")
1533 0 0 0 $meta and @$meta
1552 0 0 0 $meta and @$meta
1579 0 0 0 $hub == $active_hub and $e->isa("Test2::Event::Ok")
1641 0 130 0 $error and $opts{'die_on_fail'}
1673 8 0 0 not $hub->plan and $hub->count
1695 8 0 0 $real_exit_code and not $count
1701 0 7 1 $plan and "$plan" eq "SKIP"
1742 7 0 0 not $passed || $failed and $count
7 0 0 not $passed || $failed and $count and not $num_extra

or 2 conditions

line l !l condition
82 0 0 $result->{'type'} ||= "todo"
274 0 0 $self->{'Hub'} || (return $st_ctx->release)
298 0 0 $chub->plan || 0
642 1 0 $reason || 1
764 0 130 builtin::blessed($$thing) or scalar $self->_try(sub { $$thing->isa("UNIVERSAL"); } )
769 0 0 overload::Method($$thing, $type) || (return)
1063 0 0 $why ||= ""
1093 0 0 $why ||= ""
1554 0 0 $ctx->trace->package || (return 0)
1585 0 0 $result->{'type'} ||= "todo"
1691 0 0 $$new ||= 254
1705 0 0 $$new ||= 255

or 3 conditions

line l !l&&r !l&&!r condition
21 0 0 8 Test2::API::test2_init_done() or Test2::API::test2_load_done()
81 0 0 0 $result->{'reason'} ||= $todo
145 8 0 0 not $Test::Builder::Test->{'Original_Pid'} or $Test::Builder::Test->{'Original_Pid'} == 0
201 0 0 0 $self->{'Hub'} || $ctx->hub
219 0 0 0 $name ||= 'Child of ' . $self->name
321 0 0 0 $passed || $failed
357 0 0 0 $name ||= 'Child of ' . $self->name
378 0 0 0 not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ or builtin::blessed($err) and builtin::blessed($err) eq "Test::Builder::Exception"
409 0 0 0 !defined($plan) || "$plan" ne 'SKIP'
467 0 8 0 $self->{'Orig_Handles'} ||= do { my $format = $ctx->hub->format; my $out; if ($format and $format->isa("Test2::Formatter::TAP")) { $out = $format->handles; } ; $out ? [@$out] : [] }
602 0 0 0 not $plan or $plan eq "NO PLAN"
812 0 0 0 defined $got || defined $expect
831 0 0 0 defined $got || defined $expect
847 0 0 0 $type eq "eq" or $type eq "ne"
897 0 0 0 defined $got || defined $dont_expect
915 0 0 0 defined $got || defined $dont_expect
1122 0 0 0 ($re, $opts) = $regex =~ m[^ /(.*)/ (\w*) $ ]sx or (undef, $re, $opts) = $regex =~ /^ m([^\w\s]) (.+) \1 (\w*) $/sx
1203 0 0 0 eval { do { $maybe_fh->isa('IO::Handle') } } || eval { do { tied($maybe_fh)->can('TIEHANDLE') } }
1513 0 0 0 $ctx->trace->package || $self->exported_to
0 0 0 $pack ||= $ctx->trace->package || $self->exported_to
1535 0 0 0 $pack ||= $ctx->trace->package
1584 0 0 0 $result->{'reason'} ||= $message
1670 8 0 0 $plan or $count
8 0 0 $plan or $count or $failed
1680 0 0 0 $$new ||= $real_exit_code
1687 0 0 0 $$new ||= $exit_code
1697 0 0 0 $$new ||= $real_exit_code
1713 0 0 0 $$new ||= $real_exit_code
1742 7 0 0 $passed || $failed
1759 0 0 7 $$new ||= $exit_code

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
1005 0 0 0 0 defined $got xor defined $expect