Branch Coverage

inc/Test/More.pm
Criterion Covered Total %
branch 50 168 29.7


line true false branch
181 0 37 if (defined $item and $item eq 'no_diag') { }
518 0 0 unless ($class)
524 0 0 unless (@methods)
532 0 0 unless $tb->_try(sub { $proto->can($method); } )
535 0 0 @methods == 1 ? :
584 0 0 if (not defined $thing) { }
0 0 elsif (ref $thing) { }
592 0 0 if (&Scalar::Util::blessed($thing))
603 0 0 if ($error)
604 0 0 unless $error =~ /^Can't (locate|call) method "isa"/
612 0 0 if ($whatami eq 'reference')
617 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') { }
619 0 0 defined $thing ? :
648 0 0 if ($rslt) { }
682 0 0 unless @_
690 0 0 if ($success) { }
695 0 0 unless defined $class
851 0 0 unless _is_module_name($module)
862 0 0 unless ($ok)
882 0 0 $module =~ /^[a-zA-Z]\w*$/ ? :
939 0 0 unless @imports
946 0 0 if (@imports == 1 and $imports[0] =~ /^\d+(?:\.\d+)?$/) { }
970 0 0 unless ($ok)
997 0 0 if defined $sigdie
1049 0 7 unless (@_ == 2 or @_ == 3)
1067 0 7 if (not ref $got || ref $expected) { }
1 6 elsif (not ref $got xor not ref $expected) { }
1076 6 0 if (_deep_check($got, $expected)) { }
1096 0 1 if ($type eq 'HASH') { }
0 1 elsif ($type eq 'ARRAY') { }
0 1 elsif ($type eq 'REF') { }
1097 0 0 unless $did_arrow++
1101 0 0 unless $did_arrow++
1117 1 0 ref $val ? :
0 1 _dne($val) ? :
1 1 !defined($val) ? :
1134 0 104 unless ref $thing
1137 104 176 if UNIVERSAL::isa($thing, $type)
1295 0 0 unless (defined $how_many)
1297 0 0 unless $tb->has_plan eq 'no_plan'
1302 0 0 if (defined $how_many and $how_many =~ /\D/)
1378 0 0 unless (defined $how_many)
1380 0 0 unless $tb->has_plan eq 'no_plan'
1477 0 8 if (grep((_type($_) ne 'ARRAY'), $a1, $a2))
1482 0 8 if $a1 eq $a2
1485 0 8 $#$a1 > $#$a2 ? :
1487 0 13 $_ > $#$a1 ? :
1488 0 13 $_ > $#$a2 ? :
1490 3 10 if _equal_nonrefs($e1, $e2)
1494 10 0 if $ok
1496 0 10 unless $ok
1505 22 10 if ref $e1 or ref $e2
1507 10 0 if (defined $e1) { }
1508 10 0 if defined $e2 and $e1 eq $e2
1511 0 0 unless defined $e2
1535 0 28 if (defined $e1 xor defined $e2) { }
0 28 elsif (not defined $e1 || defined $e2) { }
0 28 elsif (_dne($e1) xor _dne($e2)) { }
0 28 elsif ($same_ref and $e1 eq $e2) { }
0 28 elsif ($not_ref) { }
1553 2 26 if ($Refs_Seen{$e1}) { }
1561 0 26 unless _type($e2) eq $type
1563 0 26 if ($type eq 'DIFFERENT') { }
8 18 elsif ($type eq 'ARRAY') { }
18 0 elsif ($type eq 'HASH') { }
0 0 elsif ($type eq 'REF') { }
0 0 elsif ($type eq 'SCALAR') { }
0 0 elsif ($type) { }
1576 0 0 if $ok
1581 0 0 if $ok
1598 0 0 if ($check)
1623 0 18 if (grep((_type($_) ne 'HASH'), $a1, $a2))
1628 0 18 if $a1 eq $a2
1631 0 18 keys %$a1 > keys %$a2 ? :
1633 19 0 exists $a1->{$k} ? :
1634 19 0 exists $a2->{$k} ? :
1636 7 12 if _equal_nonrefs($e1, $e2)
1640 12 0 if $ok
1642 0 12 unless $ok
1676 0 0 unless @$a1 == @$a2