Branch Coverage

inc/Test/Deep.pm
Criterion Covered Total %
branch 23 78 29.4


line true false branch
112 0 0 if (@_ == 1) { }
130 0 71 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 450 142 unless (ref $d1 or ref $d2)
262 450 0 if (defined $d1) { }
264 450 0 if defined $d2 and $d1 eq $d2
268 0 0 unless defined $d2
272 0 568 if (not $Test::Deep::Expects and ref $d1 and UNIVERSAL::isa($d1, 'Test::Deep::Cmp'))
278 426 142 if (ref $d1 and ref $d2)
283 0 426 if ($Test::Deep::Expects and UNIVERSAL::isa($d1, 'Test::Deep::Cmp'))
286 0 0 unless blessed(&Scalar::Util::blessed($d2))->descend($d1)
287 0 0 if ($d1->can('compare'))
296 0 426 if ($s1 eq $s2)
300 0 426 if ($Test::Deep::CompareCache->cmp($d1, $d2)) { }
318 0 568 if (ref $d1 and &Scalar::Util::refaddr($d1) == $Test::Deep::DNE_ADDR)
325 568 0 if ($d2->descend($d1)) { }
343 497 71 if ref $data and UNIVERSAL::isa($data, 'Test::Deep::Cmp')
349 0 71 if ($base eq '') { }
357 0 71 if $Test::Deep::WrapCache{$addr}
359 65 6 if ($base eq 'ARRAY') { }
6 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') { }
389 71 0 if (ref $val) { }
392 0 71 defined $blessed ? :
396 0 71 if ($Test::Deep::RegexpVersion::OldStyle)
397 0 0 if ($blessed eq 'Regexp' and $reftype eq 'SCALAR')
497 0 0 unless $ref eq 'ARRAY'
522 0 0 if (@_)