Branch Coverage

lib/Algorithm/Diff.pm
Criterion Covered Total %
branch 111 144 77.0


line true false branch
43 0 154 $keyGen ? :
44 1 153 if (exists $d{$key}) { }
53 0 36 wantarray ? :
70 55 0 if ($high == -1 or $aValue > $array->[-1])
87 0 0 if ($aValue == $found) { }
0 0 elsif ($aValue > $found) { }
132 0 36 if (ref $a eq 'HASH')
140 0 36 unless (ref $a and ref $b)
148 0 36 if ($keyGen)
160 0 36 if (ref $b eq 'HASH') { }
169 0 42 $keyGen ? :
179 0 39 $keyGen ? :
198 0 129 $keyGen ? :
199 55 74 if (exists $bMatches->{$ai})
206 0 55 if ($k and $thresh->[$k] > $j and $$thresh[$k - 1] < $j) { }
216 55 0 if (defined $k)
218 41 14 $k ? :
225 14 22 if (@$thresh) { }
0 22 elsif ($counting) { }
227 0 14 if $counting
238 1 35 wantarray ? :
263 18 6 if (defined $bLine) { }
281 3 6 if ($ai == $lastA + 1 and $bi <= $lastB)
283 1 2 if (defined $finishedACallback) { }
295 0 9 if ($bi == $lastB + 1 and $ai <= $lastA)
297 0 0 if (defined $finishedBCallback) { }
308 6 3 if $ai <= $lastA
309 7 2 if $bi <= $lastB
346 20 32 if $ma > $#$matchVector
354 10 28 if ($ai < $ma and $bi < $mb) { }
9 19 elsif ($ai < $ma) { }
358 9 1 if (defined $changeCallback) { }
386 10 12 if ($ai <= $lastA and $bi <= $lastB) { }
7 5 elsif ($ai <= $lastA) { }
390 10 0 if (defined $changeCallback) { }
421 0 0 unless defined $keyGen
435 6 2 if (defined $matchVector->[$i])
440 1 0 wantarray ? :
475 11 11 unless @$am
480 7 4 if $ai < @$a or $bi < @$b
482 0 11 wantarray ? :
498 5 2 if 0 < @$hunk
505 0 1 wantarray ? :
532 12 0 wantarray ? :
559 942 110 if $me->[6]
567 540 110 if 1 == $seq or 2 == $seq
576 0 13 if ref $us
585 0 11 if $_
588 0 11 if $_
592 8 3 if (0 == $cdif->[2] and 0 == $cdif->[3])
609 82 248 if $pos < 0
611 56 274 if $pos < 0 or $me->[3] <= $pos
622 43 119 if defined $base
631 11 43 if defined $pos
638 110 237 unless defined $steps
639 242 105 if ($steps)
642 14 228 if $pos and $new < 0
650 53 56 unless defined $steps
652 54 55 if $pos
659 20 50 if $me->[4] == (1 & $me->[6])
663 66 34 if $me->[0][$off + $seq + -2] < $me->[0][$off + $seq]
674 40 10 unless defined $base
682 10 40 unless defined $base
690 104 150 unless (wantarray)
694 98 52 unless defined $base
703 48 138 unless (wantarray)
717 0 50 wantarray ? :
50 62 if $me->[4] != (1 & $me->[6])
743 0 160 unless ($word =~ /^(-?\d+)?([a-zA-Z]+)([12])?$/ and $meth = $getName{lc $2})
749 30 130 4 == length $name ? :
756 30 50 if (wantarray) { }
40 10 elsif (1 == @value) { }