Branch Coverage

inc/Test/More.pm
Criterion Covered Total %
branch 42 134 31.3


line true false branch
176 0 2 if (defined $item and $item eq 'no_diag') { }
467 0 0 unless ($class)
473 0 0 unless (@methods)
481 0 0 unless $tb->_try(sub { $proto->can($method); } )
485 0 0 @methods == 1 ? :
529 1 0 unless defined $obj_name
531 0 1 if (not defined $object) { }
0 1 elsif (not ref $object) { }
540 0 1 if ($error) { }
0 1 elsif (not $rslt) { }
541 0 0 if ($error =~ /^Can't call method "isa" on unblessed reference/) { }
543 0 0 unless (UNIVERSAL::isa($object, $class))
564 0 1 if ($diag) { }
656 1 0 unless @imports
663 0 1 if (@imports == 1 and $imports[0] =~ /^\d+(?:\.\d+)?$/) { }
680 0 1 unless ($ok)
711 0 0 unless _is_module_name($module)
722 0 0 unless ($ok)
785 0 12 unless (@_ == 2 or @_ == 3)
803 0 12 if (not ref $got || ref $expected) { }
0 12 elsif (not ref $got xor not ref $expected) { }
812 12 0 if (_deep_check($got, $expected)) { }
832 0 0 if ($type eq 'HASH') { }
0 0 elsif ($type eq 'ARRAY') { }
0 0 elsif ($type eq 'REF') { }
833 0 0 unless $did_arrow++
837 0 0 unless $did_arrow++
853 0 0 ref $val ? :
0 0 $val eq $DNE ? :
0 0 !defined($val) ? :
870 0 220 unless ref $thing
873 220 168 if UNIVERSAL::isa($thing, $type)
994 0 0 unless (defined $how_many)
996 0 0 unless $tb->has_plan eq 'no_plan'
1001 0 0 if (defined $how_many and $how_many =~ /\D/)
1080 0 0 unless (defined $how_many)
1082 0 0 unless $tb->has_plan eq 'no_plan'
1177 0 13 if (grep((!_type($_) eq 'ARRAY'), $a1, $a2))
1182 0 13 if $a1 eq $a2
1185 0 13 $#$a1 > $#$a2 ? :
1187 0 22 $_ > $#$a1 ? :
1188 0 22 $_ > $#$a2 ? :
1192 22 0 if $ok
1194 0 22 unless $ok
1221 0 117 if (defined $e1 xor defined $e2) { }
0 117 elsif ($e1 == $DNE xor $e2 == $DNE) { }
62 55 elsif ($same_ref and $e1 eq $e2) { }
0 55 elsif ($not_ref) { }
1235 0 55 if ($Test::More::Refs_Seen{$e1}) { }
1243 0 55 unless _type($e2) eq $type
1245 0 55 if ($type eq 'DIFFERENT') { }
13 42 elsif ($type eq 'ARRAY') { }
42 0 elsif ($type eq 'HASH') { }
0 0 elsif ($type eq 'REF') { }
0 0 elsif ($type eq 'SCALAR') { }
0 0 elsif ($type) { }
1258 0 0 if $ok
1263 0 0 if $ok
1281 0 0 if ($check)
1307 0 42 if (grep((!_type($_) eq 'HASH'), $a1, $a2))
1312 0 42 if $a1 eq $a2
1315 0 42 keys %$a1 > keys %$a2 ? :
1317 83 0 exists $$a1{$k} ? :
1318 83 0 exists $$a2{$k} ? :
1322 83 0 if $ok
1324 0 83 unless $ok
1358 0 0 unless @$a1 == @$a2