inc/Test/Builder.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 53 | 252 | 21.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
64 | 15 | 0 | 96 | $epkg and not $todo |
233 | 0 | 0 | 9 | $ok and $chub->count |
0 | 0 | 9 | $ok and $chub->count and not $chub->no_ending | |
0 | 9 | 0 | $ok and $chub->count and not $chub->no_ending and not $chub->ended | |
245 | 0 | 9 | 0 | $count and $num_extra != 0 |
262 | 9 | 0 | 0 | not $passed || $failed and $count |
9 | 0 | 0 | not $passed || $failed and $count and not $num_extra | |
272 | 0 | 9 | 0 | $plan and $plan eq 'SKIP' |
294 | 0 | 0 | 9 | $code and &reftype($code) eq 'CODE' |
314 | 9 | 0 | 0 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ |
9 | 0 | 0 | &blessed($err) and &blessed($err) eq 'Test::Builder::Exception' | |
323 | 9 | 0 | 0 | $start_pid != $$ and not $INC{'Test/Sync/IPC.pm'} |
345 | 9 | 0 | 0 | not $count and !defined($plan) || "$plan" ne 'SKIP' |
400 | 0 | 0 | 6 | $format and $format->isa('Test2::Formatter::TAP') |
531 | 0 | 14 | 0 | $count and defined $num_tests |
14 | 0 | 0 | $count and defined $num_tests and $count != $num_tests | |
541 | 14 | 0 | 0 | $self->expected_tests and $num_tests != $self->expected_tests |
546 | 14 | 0 | 0 | $ctx->hub->plan and $ctx->hub->plan eq 'NO PLAN' |
561 | 0 | 0 | 0 | $plan and not $plan =~ /\D/ |
562 | 0 | 0 | 0 | $plan and $plan eq 'NO PLAN' |
579 | 0 | 0 | 0 | @call and $call[0] |
585 | 0 | 0 | 0 | $begin and $ctx->hub->meta('Test::Builder', {})->{'parent'} |
617 | 53 | 0 | 0 | 0 + $name and $name =~ /^[\d\s]+$/ |
673 | 0 | 0 | 0 | $ENV{'HARNESS_ACTIVE'} and $dfh |
730 | 0 | 0 | 0 | $numval != 0 && ($numval ne $val ? 1 : 0) |
741 | 2 | 0 | 10 | defined $got and defined $expect |
760 | 0 | 0 | 0 | defined $got and defined $expect |
826 | 0 | 0 | 1 | defined $got and defined $dont_expect |
844 | 0 | 0 | 0 | defined $got and defined $dont_expect |
932 | 0 | 0 | 0 | ($got eq $expect || $got == $expect) && ((defined $got xor defined $expect) || length $got != length $expect) |
973 | 0 | 0 | 1 | defined $file and defined $line |
1153 | 0 | 0 | 6 | $format and $format->can('no_numbers') |
0 | 0 | 6 | $format and $format->can('no_numbers') and $format->can('set_no_numbers') | |
1171 | 0 | 0 | 6 | $format and $format->can($set) |
1244 | 0 | 0 | 0 | $format and $format->isa('Test2::Formatter::TAP') |
1258 | 0 | 0 | 0 | $format and $format->isa('Test2::Formatter::TAP') |
1272 | 0 | 0 | 0 | $format and $format->isa('Test::Builder::Formatter') |
1325 | 0 | 0 | 6 | $format and $format->isa('Test2::Formatter::TAP') |
1439 | 0 | 0 | 0 | $meta and @$meta |
1458 | 0 | 0 | 0 | $meta and @$meta |
1485 | 0 | 0 | 0 | $hub == $active_hub and $e->isa('Test2::Event::Ok') |
1547 | 3 | 20 | 0 | $error and $opts{'die_on_fail'} |
1579 | 6 | 0 | 0 | not $hub->plan and $hub->count |
1601 | 6 | 0 | 0 | $real_exit_code and not $count |
1607 | 0 | 6 | 0 | $plan and "$plan" eq 'SKIP' |
1648 | 6 | 0 | 0 | not $passed || $failed and $count |
6 | 0 | 0 | not $passed || $failed and $count and not $num_extra |
line | l | !l | condition |
---|---|---|---|
78 | 0 | 0 | $result->{'type'} ||= 'todo' |
215 | 9 | 0 | $self->{'Hub'} || (return $st_ctx->release) |
239 | 9 | 0 | $chub->plan || 0 |
572 | 0 | 0 | $reason || 1 |
695 | 0 | 20 | &blessed($$thing) or scalar $self->_try(sub { $$thing->isa('UNIVERSAL'); } ) |
700 | 0 | 0 | overload::Method($$thing, $type) || (return) |
997 | 0 | 0 | $why ||= '' |
1024 | 0 | 0 | $why ||= '' |
1460 | 0 | 0 | $ctx->trace->package || (return 0) |
1491 | 0 | 0 | $result->{'type'} ||= 'todo' |
1597 | 0 | 0 | $$new ||= 254 |
1611 | 0 | 0 | $$new ||= 255 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
21 | 0 | 0 | 6 | Test2::API::test2_init_done() or Test2::API::test2_load_done() |
77 | 0 | 0 | 0 | $result->{'reason'} ||= $todo |
143 | 9 | 0 | 0 | $self->{'Hub'} || $ctx->hub |
161 | 9 | 0 | 0 | $name ||= 'Child of ' . $self->name |
262 | 9 | 0 | 0 | $passed || $failed |
297 | 9 | 0 | 0 | $name ||= 'Child of ' . $self->name |
314 | 0 | 0 | 9 | not $ok and $err =~ /Label not found for "last T2_SUBTEST_WRAPPER"/ or &blessed($err) and &blessed($err) eq 'Test::Builder::Exception' |
345 | 0 | 0 | 0 | !defined($plan) || "$plan" ne 'SKIP' |
397 | 0 | 6 | 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] : [] } |
532 | 0 | 0 | 0 | not $plan or $plan eq 'NO PLAN' |
743 | 0 | 0 | 2 | defined $got || defined $expect |
762 | 0 | 0 | 0 | defined $got || defined $expect |
778 | 0 | 0 | 0 | $type eq 'eq' or $type eq 'ne' |
828 | 0 | 0 | 0 | defined $got || defined $dont_expect |
846 | 0 | 0 | 0 | defined $got || defined $dont_expect |
1053 | 0 | 0 | 0 | ($re, $opts) = $regex =~ m[^ /(.*)/ (\w*) $ ]sx or (undef, $re, $opts) = $regex =~ /^ m([^\w\s]) (.+) \1 (\w*) $/sx |
1134 | 0 | 0 | 0 | eval { do { $maybe_fh->isa('IO::Handle') } } || eval { do { tied($maybe_fh)->can('TIEHANDLE') } } |
1419 | 9 | 0 | 0 | $ctx->trace->package || $self->exported_to |
9 | 9 | 0 | $pack ||= $ctx->trace->package || $self->exported_to | |
1441 | 0 | 0 | 0 | $pack ||= $ctx->trace->package |
1490 | 0 | 0 | 0 | $result->{'reason'} ||= $message |
1576 | 6 | 0 | 0 | $plan or $count |
6 | 0 | 0 | $plan or $count or $failed | |
1586 | 0 | 0 | 0 | $$new ||= $real_exit_code |
1593 | 0 | 0 | 0 | $$new ||= $exit_code |
1603 | 0 | 0 | 0 | $$new ||= $real_exit_code |
1619 | 0 | 0 | 0 | $$new ||= $real_exit_code |
1648 | 6 | 0 | 0 | $passed || $failed |
1665 | 0 | 0 | 6 | $$new ||= $exit_code |