Branch Coverage

inc/Test/Deep.pm
Criterion Covered Total %
branch 20 70 28.5


line true false branch
112 0 0 if (@_ == 1) { }
130 0 9 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 709 if (not $Test::Deep::Expects and ref $d1 and UNIVERSAL::isa($d1, 'Test::Deep::Cmp'))
265 402 307 if (ref $d1 and ref $d2)
270 0 402 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 0 402 if ($s1 eq $s2)
287 0 402 if ($Test::Deep::CompareCache->cmp($d1, $d2)) { }
305 0 709 if (ref $d1 and &Scalar::Util::refaddr($d1) == $Test::Deep::DNE_ADDR)
312 709 0 if ($d2->descend($d1)) { }
330 469 240 if ref $data and UNIVERSAL::isa($data, 'Test::Deep::Cmp')
336 173 67 if ($base eq '') { }
344 0 67 if $Test::Deep::WrapCache{$addr}
346 0 67 if ($base eq 'ARRAY') { }
67 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 67 173 if (ref $val) { }
379 0 67 defined $blessed ? :
383 0 67 if ($Test::Deep::RegexpVersion::OldStyle)
384 0 0 if ($blessed eq 'Regexp' and $reftype eq 'SCALAR')
484 0 0 unless $ref eq 'ARRAY'
509 0 0 if (@_)