Branch Coverage

inc/Test/Deep.pm
Criterion Covered Total %
branch 24 70 34.2


line true false branch
112 0 0 if (@_ == 1) { }
130 0 4 unless ($Test->ok($ok, $name))
191 0 0 unless $stack
200 0 0 if (ref $exp)
202 0 0 if ($exp->can('diagnostics')) { }
209 0 0 if ($exp->can('diag_message'))
216 0 0 unless (defined $diag)
218 0 0 unless defined $got
219 0 0 unless defined $expected
220 0 0 unless defined $message
238 0 0 if (defined $val) { }
240 0 0 &Scalar::Util::refaddr($val) eq $Test::Deep::DNE_ADDR ? :
0 0 ref $val ? :
259 0 30 if (not $Test::Deep::Expects and ref $d1 and UNIVERSAL::isa($d1, 'Test::Deep::Cmp'))
265 32 18 if (ref $d1 and ref $d2)
270 0 32 if ($Test::Deep::Expects and UNIVERSAL::isa($d1, 'Test::Deep::Cmp'))
273 0 0 unless blessed(&Scalar::Util::blessed($d2))->descend($d1)
274 0 0 if ($d1->can('compare'))
283 4 28 if ($s1 eq $s2)
287 0 28 if ($Test::Deep::CompareCache->cmp($d1, $d2)) { }
305 0 46 if (ref $d1 and &Scalar::Util::refaddr($d1) == $Test::Deep::DNE_ADDR)
312 38 8 if ($d2->descend($d1)) { }
330 32 14 if ref $data and UNIVERSAL::isa($data, 'Test::Deep::Cmp')
336 10 4 if ($base eq '') { }
344 0 4 if $Test::Deep::WrapCache{$addr}
346 0 4 if ($base eq 'ARRAY') { }
4 0 elsif ($base eq 'HASH') { }
0 0 elsif ($base eq 'SCALAR' or $base eq 'REF') { }
0 0 elsif ($base eq 'Regexp' or $base eq 'REGEXP') { }
376 4 10 if (ref $val) { }
379 2 2 defined $blessed ? :
383 0 4 if ($Test::Deep::RegexpVersion::OldStyle)
384 0 0 if ($blessed eq 'Regexp' and $reftype eq 'SCALAR')
484 0 4 unless $ref eq 'ARRAY'
509 0 0 if (@_)