Branch Coverage

lib/Data/Math.pm
Criterion Covered Total %
branch 47 60 78.3


line true false branch
153 1 1 unless (defined $ds1 or defined $ds2)
196 10 340 unless defined $refcode
199 156 184 if ($refcode eq ':NUMBER:') { }
83 101 elsif ($refcode eq ':STRING:') { }
219 87 14 if ($refcode eq 'HASH') { }
14 0 elsif ($refcode eq 'ARRAY') { }
229 2 13 if ($k =~ /$rule/)
231 2 0 unless ($skip_policy eq 'remove_key')
365 24 132 if $s2 and not $s1
366 24 132 if $s1 and not $s2
368 109 47 if ($op eq '+') { }
47 0 elsif ($op eq '-') { }
0 0 elsif ($op eq '*') { }
0 0 elsif ($op eq '/') { }
0 0 elsif ($op eq '%') { }
416 90 18 if ($policy eq 'default' or $policy eq 'concat_if_differ') { }
10 8 elsif ($policy eq 'pick_one') { }
8 0 elsif ($policy eq 'pick_2nd') { }
418 56 34 if ($s1 ne $s2) { }
34 0 elsif ($s1 eq $s2) { }
419 23 33 if (not defined $s1 or $s1 eq '') { }
19 14 elsif (not defined $s2 or $s2 eq '') { }
432 8 2 if ($s1 ne $s2) { }
2 0 elsif ($s1 eq $s2) { }
433 2 6 if (not defined $s2 or $s2 eq '') { }
2 4 elsif (not defined $s1 or $s1 eq '') { }
446 7 1 if ($s1 ne $s2) { }
1 0 elsif ($s1 eq $s2) { }
447 2 5 if (not defined $s1 or $s1 eq '') { }
2 3 elsif (not defined $s2 or $s2 eq '') { }