Branch Coverage

lib/Algorithm/Diff.pm
Criterion Covered Total %
branch 107 136 78.6


line true false branch
46 1 153 if (exists $d{$key}) { }
55 0 36 wantarray ? :
72 55 0 if ($high == -1 or $aValue > $$array[-1])
89 0 0 if ($aValue == $found) { }
0 0 elsif ($aValue > $found) { }
134 0 36 if (ref $a eq 'HASH')
142 0 36 unless (ref $a and ref $b)
150 36 0 if (not defined $keyGen) { }
167 0 36 if (ref $b eq 'HASH') { }
204 55 74 if (exists $$bMatches{$ai})
211 0 55 if ($k and $$thresh[$k] > $j and $$thresh[$k - 1] < $j) { }
221 55 0 if (defined $k)
223 41 14 $k ? :
230 14 22 if (@$thresh) { }
0 22 elsif ($counting) { }
232 0 14 if $counting
243 1 35 wantarray ? :
268 18 6 if (defined $bLine) { }
286 3 6 if ($ai == $lastA + 1 and $bi <= $lastB)
288 1 2 if (defined $finishedACallback) { }
300 0 9 if ($bi == $lastB + 1 and $ai <= $lastA)
302 0 0 if (defined $finishedBCallback) { }
313 6 3 if $ai <= $lastA
314 7 2 if $bi <= $lastB
351 20 32 if $ma > $#$matchVector
359 10 28 if ($ai < $ma and $bi < $mb) { }
9 19 elsif ($ai < $ma) { }
363 9 1 if (defined $changeCallback) { }
391 10 12 if ($ai <= $lastA and $bi <= $lastB) { }
7 5 elsif ($ai <= $lastA) { }
395 10 0 if (defined $changeCallback) { }
426 0 0 unless defined $keyGen
440 6 2 if (defined $$matchVector[$i])
445 1 0 wantarray ? :
480 11 11 unless @$am
485 7 4 if $ai < @$a or $bi < @$b
487 0 11 wantarray ? :
503 5 2 if 0 < @$hunk
510 0 1 wantarray ? :
537 12 0 wantarray ? :
564 942 110 if $$me[6]
572 540 110 if 1 == $seq or 2 == $seq
581 0 13 if ref $us
590 0 11 if $_
593 0 11 if $_
597 8 3 if (0 == $$cdif[2] and 0 == $$cdif[3])
614 82 248 if $pos < 0
616 56 274 if $pos < 0 or $$me[3] <= $pos
627 43 119 if defined $base
636 11 43 if defined $pos
643 110 237 unless defined $steps
644 242 105 if ($steps)
647 14 228 if $pos and $new < 0
655 53 56 unless defined $steps
657 54 55 if $pos
664 20 50 if $$me[4] == (1 & $$me[6])
668 66 34 if $$me[0][$off + $seq + -2] < $$me[0][$off + $seq]
679 40 10 unless defined $base
687 10 40 unless defined $base
695 104 150 unless (wantarray)
699 98 52 unless defined $base
708 48 138 unless (wantarray)
722 0 50 wantarray ? :
50 62 if $$me[4] != (1 & $$me[6])
748 0 160 unless ($word =~ /^(-?\d+)?([a-zA-Z]+)([12])?$/ and $meth = $getName{lc $2})
754 30 130 4 == length $name ? :
761 30 50 if (wantarray) { }
40 10 elsif (1 == @value) { }