line |
true |
false |
branch |
19
|
0 |
28 |
if ($] >= 5.008001 and $Test::Builder::Config{'useithreads'} and $INC{'threads.pm'}) { } |
29
|
0 |
0 |
if ($type eq 'HASH') { } |
|
0 |
0 |
elsif ($type eq 'ARRAY') { } |
|
0 |
0 |
elsif ($type eq 'SCALAR') { } |
44
|
0 |
0 |
if ($type eq 'HASH') { } |
|
0 |
0 |
elsif ($type eq 'ARRAY') { } |
|
0 |
0 |
elsif ($type eq 'SCALAR') { } |
198
|
28 |
0 |
unless $^C |
225
|
58 |
157 |
if (defined $pack) |
247
|
29 |
24 |
unless $cmd |
251
|
0 |
24 |
if ($$self{'Have_Plan'}) |
255
|
3 |
21 |
if ($cmd eq 'no_plan') { } |
|
5 |
16 |
elsif ($cmd eq 'skip_all') { } |
|
16 |
0 |
elsif ($cmd eq 'tests') { } |
262
|
16 |
0 |
if ($arg) { } |
|
0 |
0 |
elsif (not defined $arg) { } |
|
0 |
0 |
elsif (not $arg) { } |
295
|
20 |
0 |
if (@_) |
296
|
0 |
20 |
unless $max =~ /^\+?\d+$/ and $max > 0 |
302
|
20 |
0 |
unless $self->no_header |
334
|
0 |
0 |
if $$self{'Expected_Tests'} |
335
|
0 |
0 |
if $$self{'No_Plan'} |
353
|
5 |
0 |
if $reason |
358
|
5 |
0 |
unless $self->no_header |
388
|
102 |
32 |
$test ? : |
398
|
0 |
134 |
if defined $name and $name =~ /^[\d\s]+$/ |
411
|
32 |
102 |
if (not $test) { } |
413
|
0 |
32 |
$todo ? : |
420
|
134 |
0 |
if $self->use_numbers |
422
|
120 |
14 |
if (defined $name) { } |
431
|
0 |
134 |
if ($todo) { } |
446
|
32 |
102 |
unless ($test) |
447
|
0 |
32 |
$todo ? : |
448
|
32 |
0 |
if $ENV{'HARNESS_ACTIVE'} |
450
|
32 |
0 |
if (defined $name) { } |
459
|
102 |
32 |
$test ? : |
467
|
0 |
446 |
unless $self->_try(sub {
require overload;
}
) |
470
|
0 |
624 |
if ($self->_is_object($$thing)) |
471
|
0 |
0 |
if (my $string_meth = overload::Method($$thing, $type)) |
482
|
0 |
624 |
if ref $thing |
|
0 |
624 |
$self->_try(sub {
$thing->isa('UNIVERSAL') if ref $thing;
}
) ? : |
498
|
0 |
0 |
unless $self->_is_dualvar($$val) |
510
|
0 |
0 |
if $numval != 0 and $numval ne $val |
537
|
0 |
89 |
unless (defined $got and defined $expect) |
542
|
0 |
0 |
unless $test |
555
|
0 |
0 |
unless (defined $got and defined $expect) |
560
|
0 |
0 |
unless $test |
571
|
64 |
0 |
if (defined $$val) { } |
572
|
64 |
0 |
if ($type eq 'eq') { } |
613
|
0 |
0 |
unless (defined $got and defined $dont_expect) |
618
|
0 |
0 |
unless $test |
629
|
0 |
0 |
unless (defined $got and defined $dont_expect) |
634
|
0 |
0 |
unless $test |
695
|
0 |
89 |
$numeric_cmps{$type} ? : |
716
|
32 |
57 |
unless ($ok) |
717
|
32 |
0 |
if ($type =~ /^(eq|==)$/) { } |
730
|
0 |
0 |
defined $got ? : |
731
|
0 |
0 |
defined $expect ? : |
746
|
90 |
0 |
if defined $file and defined $line |
816
|
0 |
0 |
if $self->use_numbers |
818
|
0 |
0 |
if length $why |
857
|
0 |
0 |
if $self->use_numbers |
922
|
0 |
1 |
unless defined $regex |
927
|
1 |
0 |
if (ref $regex eq 'Regexp') { } |
|
0 |
0 |
elsif (($re, $opts) = $regex =~ m[^ /(.*)/ (\w*) $ ]sx or (undef, $re, $opts) = $regex =~ /^ m([^\w\s]) (.+) \1 (\w*) $/sx) { } |
935
|
0 |
0 |
length $opts ? : |
946
|
0 |
1 |
unless (defined $usable_regex) |
963
|
0 |
1 |
if $cmp eq '!~' |
969
|
0 |
1 |
unless ($ok) |
970
|
0 |
0 |
defined $this ? : |
971
|
0 |
0 |
$cmp eq '=~' ? : |
1008
|
0 |
1070 |
wantarray ? : |
1025
|
0 |
84 |
unless defined $maybe_fh |
1027
|
84 |
0 |
if ref $maybe_fh eq 'GLOB' |
1028
|
0 |
0 |
if ref \$maybe_fh eq 'GLOB' |
1070
|
0 |
224 |
if (defined $level) |
1103
|
0 |
134 |
if (defined $use_nums) |
1140
|
0 |
178 |
if (defined $no) |
1191
|
0 |
125 |
if $self->no_diag |
1192
|
0 |
125 |
unless @msgs |
1195
|
0 |
125 |
if $^C |
1199
|
125 |
0 |
defined $_ ? : |
1205
|
0 |
125 |
unless $msg =~ /\n\Z/ |
1230
|
0 |
159 |
if $^C |
1242
|
0 |
159 |
unless $msg =~ /\n\Z/ |
1263
|
0 |
157 |
$self->todo ? : |
1299
|
28 |
159 |
if (defined $fh) |
1308
|
28 |
157 |
if (defined $fh) |
1317
|
28 |
0 |
if (defined $fh) |
1329
|
84 |
0 |
if ($self->is_fh($file_or_fh)) { } |
1334
|
0 |
0 |
unless open $fh, ">$file_or_fh" |
1371
|
0 |
28 |
if $Opened_Testhandles |
1374
|
0 |
28 |
unless open TESTOUT, '>&STDOUT' |
1375
|
0 |
28 |
unless open TESTERR, '>&STDERR' |
1417
|
0 |
134 |
unless ($$self{'Have_Plan'}) |
1448
|
0 |
0 |
if (defined $num) |
1449
|
0 |
0 |
unless ($$self{'Have_Plan'}) |
1457
|
0 |
0 |
if ($num > @$test_results) { } |
|
0 |
0 |
elsif ($num < @$test_results) { } |
1458
|
0 |
0 |
@$test_results ? : |
1573
|
0 |
291 |
unless $pack |
1576
|
0 |
291 |
defined ${$pack . '::TODO';} ? : |
1595
|
224 |
0 |
wantarray ? : |
1639
|
0 |
84 |
if ($check) |
1694
|
5 |
23 |
if ($$self{'Original_Pid'} != $$ or not $$self{'Have_Plan'} || $$self{'Test_Died'} or $$self{'Bailed_Out'}) |
1705
|
16 |
7 |
if (@$test_results) { } |
|
0 |
7 |
elsif ($$self{'Skip_All'}) { } |
|
3 |
4 |
elsif ($$self{'Test_Died'}) { } |
1707
|
0 |
16 |
if ($$self{'No_Plan'}) |
1708
|
0 |
0 |
unless $self->no_header |
1717
|
389 |
134 |
unless defined $$test_results[$idx] |
1726
|
10 |
6 |
if ($num_extra < 0) { } |
|
0 |
6 |
elsif ($num_extra > 0) { } |
1727
|
0 |
10 |
$$self{'Expected_Tests'} == 1 ? : |
1733
|
0 |
0 |
$$self{'Expected_Tests'} == 1 ? : |
1739
|
3 |
13 |
if ($num_failed) |
1741
|
0 |
3 |
$num_failed == 1 ? : |
1743
|
2 |
1 |
$num_extra == 0 ? : |
1750
|
9 |
7 |
if ($$self{'Test_Died'}) |
1755
|
9 |
0 |
if _my_exit(255) |
1759
|
3 |
4 |
if ($num_failed) { } |
|
0 |
4 |
elsif ($num_extra != 0) { } |
1760
|
3 |
0 |
$num_failed <= 254 ? : |
1769
|
7 |
0 |
if _my_exit($exit_code) |
1772
|
0 |
0 |
if _my_exit(0) |
1778
|
3 |
0 |
if _my_exit(255) |
1782
|
4 |
0 |
if _my_exit(255) |
1787
|
28 |
0 |
if defined $Test and not $Test->no_ending |