Branch Coverage

inc/Test/More.pm
Criterion Covered Total %
branch 9 178 5.0


line true false branch
183 0 2 if (defined $item and $item eq 'no_diag') { }
0 2 elsif (defined $item and $item eq 'import') { }
187 0 0 if ($import) { }
204 1 0 if ($class eq 'Test::More' and !$import || grep(($_ eq '$TODO'), @$import))
208 0 1 if ($import) { }
545 0 0 unless ($class)
551 0 0 unless (@methods)
559 0 0 unless $tb->_try(sub { $proto->can($method); } )
562 0 0 @methods == 1 ? :
611 0 0 if (not defined $thing) { }
0 0 elsif (ref $thing) { }
619 0 0 if (&Scalar::Util::blessed($thing))
630 0 0 if ($error)
631 0 0 unless $error =~ /^Can't (locate|call) method "isa"/
639 0 0 if ($whatami eq 'reference')
644 0 0 if (defined $thing_name) { }
0 0 elsif ($whatami eq 'object') { }
0 0 elsif ($whatami eq 'reference') { }
0 0 elsif ($whatami eq 'undef') { }
0 0 elsif ($whatami eq 'class') { }
646 0 0 defined $thing ? :
675 0 0 if ($rslt) { }
709 0 0 unless @_
717 0 0 if ($success) { }
722 0 0 unless defined $class
887 0 0 unless _is_module_name($module)
898 0 0 unless ($ok)
918 0 0 $module =~ /^[a-zA-Z]\w*$/ ? :
975 1 0 unless @imports
985 0 1 if (@imports == 1 and $imports[0] =~ /^\d+(?:\.\d+)?$/) { }
1009 0 1 unless ($ok)
1030 0 1 if defined $args[-1]
1035 0 1 if defined $sigdie
1102 0 0 unless (@_ == 2 or @_ == 3)
1120 0 0 if (not ref $got || ref $expected) { }
0 0 elsif (not ref $got xor not ref $expected) { }
1129 0 0 if (_deep_check($got, $expected)) { }
1149 0 0 if ($type eq 'HASH') { }
0 0 elsif ($type eq 'ARRAY') { }
0 0 elsif ($type eq 'REF') { }
1150 0 0 unless $did_arrow++
1154 0 0 unless $did_arrow++
1170 0 0 ref $val ? :
0 0 _dne($val) ? :
0 0 !defined($val) ? :
1187 0 0 unless ref $thing
1190 0 0 if UNIVERSAL::isa($thing, $type)
1351 0 0 unless (defined $how_many)
1353 0 0 if $plan and $plan =~ /^\d+$/
1358 0 0 if (defined $how_many and $how_many =~ /\D/)
1434 0 0 unless (defined $how_many)
1436 0 0 unless $tb->has_plan eq 'no_plan'
1533 0 0 if (grep((_type($_) ne 'ARRAY'), $a1, $a2))
1538 0 0 if $a1 eq $a2
1541 0 0 $#$a1 > $#$a2 ? :
1543 0 0 $_ > $#$a1 ? :
1544 0 0 $_ > $#$a2 ? :
1546 0 0 if _equal_nonrefs($e1, $e2)
1550 0 0 if $ok
1552 0 0 unless $ok
1561 0 0 if ref $e1 or ref $e2
1563 0 0 if (defined $e1) { }
1564 0 0 if defined $e2 and $e1 eq $e2
1567 0 0 unless defined $e2
1591 0 0 if (defined $e1 xor defined $e2) { }
0 0 elsif (not defined $e1 || defined $e2) { }
0 0 elsif (_dne($e1) xor _dne($e2)) { }
0 0 elsif ($same_ref and $e1 eq $e2) { }
0 0 elsif ($not_ref) { }
1609 0 0 if ($Refs_Seen{$e1}) { }
1617 0 0 unless _type($e2) eq $type
1619 0 0 if ($type eq 'DIFFERENT') { }
0 0 elsif ($type eq 'ARRAY') { }
0 0 elsif ($type eq 'HASH') { }
0 0 elsif ($type eq 'REF') { }
0 0 elsif ($type eq 'SCALAR') { }
0 0 elsif ($type) { }
1632 0 0 if $ok
1637 0 0 if $ok
1654 0 0 if ($check)
1679 0 0 if (grep((_type($_) ne 'HASH'), $a1, $a2))
1684 0 0 if $a1 eq $a2
1687 0 0 keys %$a1 > keys %$a2 ? :
1689 0 0 exists $a1->{$k} ? :
1690 0 0 exists $a2->{$k} ? :
1692 0 0 if _equal_nonrefs($e1, $e2)
1696 0 0 if $ok
1698 0 0 unless $ok
1732 0 0 unless @$a1 == @$a2