Branch Coverage

blib/lib/Data/Difference.pm
Criterion Covered Total %
branch 29 44 65.9


line true false branch
15 1 0 defined $b ? :
1 1 defined $a ? :
3 2 if (ref $a) { }
1 1 elsif (defined $a ? defined $b ? $a ne $b : 1 : 0) { }
16 3 0 if (my $sub = 'Data::Difference'->can('_diff_' . ref($a))) { }
33 0 1 unless ref $a eq ref $b
39 2 0 defined $$b{$k} ? :
2 0 defined $$a{$k} ? :
1 3 if (not exists $$a{$k}) { }
1 2 elsif (not exists $$b{$k}) { }
0 2 elsif (ref $$a{$k}) { }
1 1 elsif (defined $$a{$k} ? defined $$b{$k} ? $$b{$k} ne $$a{$k} : 1 : 0) { }
46 0 0 if (my $sub = 'Data::Difference'->can('_diff_' . ref($$a{$k}))) { }
63 0 2 unless ref $a eq ref $b
66 1 1 $#$a > $#$b ? :
69 4 0 defined $$b[$i] ? :
4 0 defined $$a[$i] ? :
1 5 if ($i > $#$a) { }
1 4 elsif ($i > $#$b) { }
0 4 elsif (ref $$a[$i]) { }
0 4 elsif (defined $$a[$i] ? defined $$b[$i] ? $$b[$i] ne $$a[$i] : 1 : 0) { }
76 0 0 if (my $sub = 'Data::Difference'->can('_diff_' . ref($$a[$i]))) { }