Branch Coverage

inc/Test/More.pm
Criterion Covered Total %
branch 35 152 23.0


line true false branch
181 0 12 if (defined $item and $item eq 'no_diag') { }
512 0 1 unless ($class)
518 0 1 unless (@methods)
526 0 1 unless $tb->_try(sub { $proto->can($method); } )
529 1 0 @methods == 1 ? :
579 0 31 if (not defined $object) { }
580 0 0 unless defined $obj_name
584 31 0 ref $object ? :
587 0 31 if ($error) { }
588 0 0 if ($error =~ /^Can't call method "isa" on unblessed reference/) { }
0 0 elsif ($error =~ /Can't call method "isa" without a package/) { }
590 0 0 unless defined $obj_name
591 0 0 unless (UNIVERSAL::isa($object, $class))
609 24 7 unless defined $obj_name
610 0 31 unless ($rslt)
619 0 31 if ($diag) { }
653 0 0 unless @_
658 0 0 unless defined $object_name
662 0 0 if ($success) { }
756 0 0 unless @imports
762 0 0 if (@imports == 1 and $imports[0] =~ /^\d+(?:\.\d+)?$/) { }
782 0 0 unless ($ok)
809 0 0 if defined $sigdie
831 0 0 unless _is_module_name($module)
842 0 0 unless ($ok)
862 0 0 $module =~ /^[a-zA-Z]\w*$/ ? :
911 0 2 unless (@_ == 2 or @_ == 3)
929 0 2 if (not ref $got || ref $expected) { }
0 2 elsif (not ref $got xor not ref $expected) { }
938 2 0 if (_deep_check($got, $expected)) { }
958 0 0 if ($type eq 'HASH') { }
0 0 elsif ($type eq 'ARRAY') { }
0 0 elsif ($type eq 'REF') { }
959 0 0 unless $did_arrow++
963 0 0 unless $did_arrow++
979 0 0 ref $val ? :
0 0 _dne($val) ? :
0 0 !defined($val) ? :
996 0 8 unless ref $thing
999 8 0 if UNIVERSAL::isa($thing, $type)
1157 0 0 unless (defined $how_many)
1159 0 0 unless $tb->has_plan eq 'no_plan'
1164 0 0 if (defined $how_many and $how_many =~ /\D/)
1243 0 0 unless (defined $how_many)
1245 0 0 unless $tb->has_plan eq 'no_plan'
1342 0 2 if (grep((_type($_) ne 'ARRAY'), $a1, $a2))
1347 0 2 if $a1 eq $a2
1350 0 2 $#$a1 > $#$a2 ? :
1352 0 1 $_ > $#$a1 ? :
1353 0 1 $_ > $#$a2 ? :
1357 1 0 if $ok
1359 0 1 unless $ok
1386 0 3 if (defined $e1 xor defined $e2) { }
0 3 elsif (not defined $e1 || defined $e2) { }
0 3 elsif (_dne($e1) xor _dne($e2)) { }
1 2 elsif ($same_ref and $e1 eq $e2) { }
0 2 elsif ($not_ref) { }
1404 0 2 if ($Refs_Seen{$e1}) { }
1412 0 2 unless _type($e2) eq $type
1414 0 2 if ($type eq 'DIFFERENT') { }
2 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) { }
1427 0 0 if $ok
1432 0 0 if $ok
1449 0 0 if ($check)
1474 0 0 if (grep((_type($_) ne 'HASH'), $a1, $a2))
1479 0 0 if $a1 eq $a2
1482 0 0 keys %$a1 > keys %$a2 ? :
1484 0 0 exists $$a1{$k} ? :
1485 0 0 exists $$a2{$k} ? :
1489 0 0 if $ok
1491 0 0 unless $ok
1525 0 0 unless @$a1 == @$a2