line |
true |
false |
branch |
18
|
0 |
6 |
if ($] >= 5.008 and $Test::Builder::Config{'useithreads'} and $INC{'threads.pm'}) { } |
28
|
0 |
0 |
if ($type eq 'HASH') { } |
|
0 |
0 |
elsif ($type eq 'ARRAY') { } |
|
0 |
0 |
elsif ($type eq 'SCALAR') { } |
43
|
0 |
0 |
if ($type eq 'HASH') { } |
|
0 |
0 |
elsif ($type eq 'ARRAY') { } |
|
0 |
0 |
elsif ($type eq 'SCALAR') { } |
197
|
6 |
0 |
unless $^C |
224
|
14 |
1 |
if (defined $pack) |
294
|
6 |
0 |
if (@_) |
295
|
0 |
6 |
unless $max =~ /^\+?\d+$/ and $max > 0 |
301
|
6 |
0 |
unless $self->no_header |
333
|
0 |
0 |
if $$self{'Expected_Tests'} |
334
|
0 |
0 |
if $$self{'No_Plan'} |
352
|
0 |
0 |
if $reason |
357
|
0 |
0 |
unless $self->no_header |
386
|
8 |
0 |
$test ? : |
388
|
0 |
8 |
unless ($$self{'Have_Plan'}) |
399
|
0 |
8 |
if defined $name and $name =~ /^[\d\s]+$/ |
412
|
0 |
8 |
if (not $test) { } |
414
|
0 |
0 |
$todo ? : |
421
|
8 |
0 |
if $self->use_numbers |
423
|
8 |
0 |
if (defined $name) { } |
432
|
0 |
8 |
if ($todo) { } |
447
|
0 |
8 |
unless ($test) |
448
|
0 |
0 |
$todo ? : |
449
|
0 |
0 |
if $ENV{'HARNESS_ACTIVE'} |
451
|
0 |
0 |
if (defined $name) { } |
460
|
8 |
0 |
$test ? : |
470
|
0 |
20 |
unless eval {
do {
require overload
}
} |
474
|
0 |
24 |
if (_is_object($$thing)) |
475
|
0 |
0 |
if (my $string_meth = overload::Method($$thing, $type)) |
487
|
0 |
24 |
if ref $thing |
|
0 |
24 |
eval {
do {
$thing->isa('UNIVERSAL') if ref $thing
}
} ? : |
503
|
0 |
0 |
unless $self->_is_dualvar($$val) |
515
|
0 |
0 |
if $numval != 0 and $numval ne $val |
542
|
0 |
2 |
unless (defined $got and defined $expect) |
547
|
0 |
0 |
unless $test |
560
|
0 |
0 |
unless (defined $got and defined $expect) |
565
|
0 |
0 |
unless $test |
576
|
0 |
0 |
if (defined $$val) { } |
577
|
0 |
0 |
if ($type eq 'eq') { } |
618
|
0 |
0 |
unless (defined $got and defined $dont_expect) |
623
|
0 |
0 |
unless $test |
634
|
0 |
0 |
unless (defined $got and defined $dont_expect) |
639
|
0 |
0 |
unless $test |
712
|
0 |
0 |
unless defined $regex |
717
|
0 |
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) { } |
725
|
0 |
0 |
length $opts ? : |
736
|
0 |
0 |
unless (defined $usable_regex) |
753
|
0 |
0 |
if $cmp eq '!~' |
759
|
0 |
0 |
unless ($ok) |
760
|
0 |
0 |
defined $this ? : |
761
|
0 |
0 |
$cmp eq '=~' ? : |
791
|
0 |
2 |
$numeric_cmps{$type} ? : |
813
|
0 |
2 |
unless ($ok) |
814
|
0 |
0 |
if ($type =~ /^(eq|==)$/) { } |
827
|
0 |
0 |
defined $got ? : |
828
|
0 |
0 |
defined $expect ? : |
843
|
2 |
0 |
if defined $file and defined $line |
891
|
0 |
0 |
unless ($$self{'Have_Plan'}) |
908
|
0 |
0 |
if $self->use_numbers |
910
|
0 |
0 |
if length $why |
935
|
0 |
0 |
unless ($$self{'Have_Plan'}) |
952
|
0 |
0 |
if $self->use_numbers |
1005
|
0 |
10 |
if (defined $level) |
1040
|
0 |
8 |
if (defined $use_nums) |
1077
|
0 |
13 |
if (defined $no) |
1128
|
0 |
1 |
if $self->no_diag |
1129
|
0 |
1 |
unless @msgs |
1132
|
0 |
1 |
if $^C |
1136
|
1 |
0 |
defined $_ ? : |
1142
|
1 |
0 |
unless $msg =~ /\n\Z/ |
1167
|
0 |
14 |
if $^C |
1179
|
0 |
14 |
unless $msg =~ /\n\Z/ |
1197
|
0 |
1 |
$self->todo ? : |
1233
|
6 |
14 |
if (defined $fh) |
1242
|
6 |
1 |
if (defined $fh) |
1251
|
6 |
0 |
if (defined $fh) |
1262
|
18 |
0 |
if (_is_fh($file_or_fh)) { } |
1267
|
0 |
0 |
unless open $fh, ">$file_or_fh" |
1278
|
0 |
18 |
unless defined $maybe_fh |
1280
|
0 |
18 |
if ref \$maybe_fh eq 'GLOB' |
1318
|
0 |
6 |
if $Opened_Testhandles |
1321
|
0 |
6 |
unless open TESTOUT, '>&STDOUT' |
1322
|
0 |
6 |
unless open TESTERR, '>&STDERR' |
1352
|
0 |
0 |
if (defined $num) |
1353
|
0 |
0 |
unless ($$self{'Have_Plan'}) |
1362
|
0 |
0 |
if ($num > @$test_results) { } |
|
0 |
0 |
elsif ($num < @$test_results) { } |
1363
|
0 |
0 |
@$test_results ? : |
1478
|
0 |
9 |
unless $pack |
1481
|
0 |
9 |
defined ${$pack . '::TODO';} ? : |
1500
|
10 |
0 |
wantarray ? : |
1544
|
0 |
18 |
if ($check) |
1598
|
0 |
6 |
if ($$self{'Original_Pid'} != $$ or not $$self{'Have_Plan'} || $$self{'Test_Died'} or $$self{'Bailed_Out'}) |
1609
|
6 |
0 |
if (@$test_results) { } |
|
0 |
0 |
elsif ($$self{'Skip_All'}) { } |
|
0 |
0 |
elsif ($$self{'Test_Died'}) { } |
1611
|
0 |
6 |
if ($$self{'No_Plan'}) |
1612
|
0 |
0 |
unless $self->no_header |
1621
|
0 |
8 |
unless defined $$test_results[$idx] |
1630
|
0 |
6 |
if ($num_extra < 0) { } |
|
0 |
6 |
elsif ($num_extra > 0) { } |
1631
|
0 |
0 |
$$self{'Expected_Tests'} == 1 ? : |
1637
|
0 |
0 |
$$self{'Expected_Tests'} == 1 ? : |
1643
|
0 |
6 |
if ($num_failed) |
1645
|
0 |
0 |
$num_failed == 1 ? : |
1647
|
0 |
0 |
$num_extra == 0 ? : |
1654
|
0 |
6 |
if ($$self{'Test_Died'}) |
1659
|
0 |
0 |
if _my_exit(255) |
1663
|
0 |
6 |
if ($num_failed) { } |
|
0 |
6 |
elsif ($num_extra != 0) { } |
1664
|
0 |
0 |
$num_failed <= 254 ? : |
1673
|
6 |
0 |
if _my_exit($exit_code) |
1676
|
0 |
0 |
if _my_exit(0) |
1682
|
0 |
0 |
if _my_exit(255) |
1686
|
0 |
0 |
if _my_exit(255) |
1691
|
6 |
0 |
if defined $Test and not $Test->no_ending |