Branch Coverage

inc/Test/Deep.pm
Criterion Covered Total %
branch 21 70 30.0


line true false branch
109 0 0 if (@_ == 1) { }
127 0 6 unless ($Test->ok($ok, $name))
188 0 0 unless $stack
197 0 0 if (ref $exp)
199 0 0 if ($exp->can('diagnostics')) { }
206 0 0 if ($exp->can('diag_message'))
213 0 0 unless (defined $diag)
215 0 0 unless defined $got
216 0 0 unless defined $expected
217 0 0 unless defined $message
235 0 0 if (defined $val) { }
237 0 0 &Scalar::Util::refaddr($val) eq $Test::Deep::DNE_ADDR ? :
0 0 ref $val ? :
256 0 50 if (not $Test::Deep::Expects and ref $d1 and UNIVERSAL::isa($d1, 'Test::Deep::Cmp'))
262 36 14 if (ref $d1 and ref $d2)
267 0 36 if ($Test::Deep::Expects and UNIVERSAL::isa($d1, 'Test::Deep::Cmp'))
270 0 0 unless blessed(&Scalar::Util::blessed($d2))->descend($d1)
271 0 0 if ($d1->can('compare'))
280 0 36 if ($s1 eq $s2)
284 0 36 if ($Test::Deep::CompareCache->cmp($d1, $d2)) { }
302 0 50 if (ref $d1 and &Scalar::Util::refaddr($d1) == $Test::Deep::DNE_ADDR)
309 50 0 if ($d2->descend($d1)) { }
327 42 8 if ref $data and UNIVERSAL::isa($data, 'Test::Deep::Cmp')
333 2 6 if ($base eq '') { }
341 0 6 if $Test::Deep::WrapCache{$addr}
343 0 0 $] <= 5.01 ? :
3 3 if ($base eq 'ARRAY') { }
3 0 elsif ($base eq 'HASH') { }
0 0 elsif ($base eq 'SCALAR' or $base eq 'REF') { }
0 0 elsif ($] <= 5.01 ? $base eq 'Regexp' : $base eq 'REGEXP') { }
373 6 2 if (ref $val) { }
376 0 6 defined $blessed ? :
380 0 6 if ($] <= 5.01)
381 0 0 if ($blessed eq 'Regexp' and $reftype eq 'SCALAR')
503 0 0 if (@_)