Condition Coverage

blib/lib/Data/Hash/Diff/Smart/Engine.pm
Criterion Covered Total %
condition 37 79 46.8


and 3 conditions

line !l l&&!r l&&r condition
97 18 0 34 ref $old and ref $new
120 0 0 33 $rt_old and $rt_new
0 33 0 $rt_old and $rt_new and $rt_old ne $rt_new
133 0 33 0 $rt_old and not $rt_new
143 33 0 0 not $rt_old and $rt_new
218 5 5 26 exists $old->{$k} and exists $new->{$k}
272 0 0 0 $i <= $old->$#* and $i <= $new->$#*
329 1 0 6 $i > 0 and $j > 0
348 0 0 6 $ai < @a and $bi < @b
0 2 4 $ai < @a and $bi < @b and _eq($a[$ai], $b[$bi])
0 0 2 $ai < @a and defined $l
0 0 2 $ai < @a and defined $l and _eq($a[$ai], $l)
0 0 0 $bi < @b and defined $l
0 0 0 $bi < @b and defined $l and _eq($b[$bi], $l)
377 0 0 6 $li < @lcs and $ai > 0
0 0 6 $li < @lcs and $ai > 0 and $bi > 0
0 2 4 $li < @lcs and $ai > 0 and $bi > 0 and _eq($a[$ai - 1], $lcs[$li])
476 0 42 14 $rules and @$rules

or 2 conditions

line l !l condition
76 0 26 $opts{'compare'} || {}
2 24 $opts{'array_mode'} || 'index'
245 2 0 $ctx->{'array_mode'} || 'index'
401 3 1 $count_old{$k} || 0
402 3 1 $count_new{$k} || 0
437 66 0 builtin::reftype($v) || 'SCALAR'

or 3 conditions

line l !l&&r !l&&!r condition
113 33 0 18 $rt_old or $rt_new
345 6 0 1 $ai < @a or $bi < @b
442 62 0 0 defined $a or defined $b

xor 4 conditions

line l&&r l&&!r !l&&r !l&&!r condition
443 62 0 0 0 defined $a xor defined $b