lib/Algorithm/Diff.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 74 | 95 | 77.8 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
142 | 0 | 36 | 0 | ref $a and ref $b |
176 | 4 | 3 | 42 | $aStart <= $aFinish and $bStart <= $bFinish |
7 | 29 | 13 | $aStart <= $aFinish and $bStart <= $bFinish and &$compare($$a[$aStart], $$b[$bStart], @_) | |
185 | 6 | 7 | 39 | $aStart <= $aFinish and $bStart <= $bFinish |
13 | 23 | 16 | $aStart <= $aFinish and $bStart <= $bFinish and &$compare($$a[$aFinish], $$b[$bFinish], @_) | |
211 | 55 | 0 | 0 | $k and $$thresh[$k] > $j |
55 | 0 | 0 | $k and $$thresh[$k] > $j and $$thresh[$k - 1] < $j | |
286 | 6 | 0 | 3 | $ai == $lastA + 1 and $bi <= $lastB |
300 | 7 | 2 | 0 | $bi == $lastB + 1 and $ai <= $lastA |
344 | 20 | 32 | 19 | $ma <= $#$matchVector and not defined $$matchVector[$ma] |
359 | 19 | 9 | 10 | $ai < $ma and $bi < $mb |
391 | 5 | 7 | 10 | $ai <= $lastA and $bi <= $lastB |
474 | 11 | 5 | 28 | @$am and $ai == $$am[0] |
16 | 6 | 22 | @$am and $ai == $$am[0] and $bi == $$bm[0] | |
597 | 3 | 0 | 8 | 0 == $$cdif[2] and 0 == $$cdif[3] |
647 | 108 | 120 | 14 | $pos and $new < 0 |
748 | 0 | 160 | 0 | $word =~ /^(-?\d+)?([a-zA-Z]+)([12])?$/ and $meth = $getName{lc $2} |
line | l | !l | condition |
---|---|---|---|
250 | 3 | 0 | shift() || {} |
252 | 3 | 0 | $$callbacks{'MATCH'} || sub { } |
253 | 3 | 0 | $$callbacks{'DISCARD_A'} || sub { } |
255 | 3 | 0 | $$callbacks{'DISCARD_B'} || sub { } |
324 | 20 | 0 | shift() || {} |
326 | 20 | 0 | $$callbacks{'MATCH'} || sub { } |
327 | 20 | 0 | $$callbacks{'DISCARD_A'} || sub { } |
328 | 20 | 0 | $$callbacks{'DISCARD_B'} || sub { } |
613 | 256 | 74 | $pos || 0 |
618 | 190 | 140 | $pos || !1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
69 | 0 | 44 | 11 | $high ||= $#$array |
72 | 14 | 41 | 0 | $high == -1 or $aValue > $$array[-1] |
282 | 6 | 3 | 3 | $ai <= $lastA or $bi <= $lastB |
356 | 19 | 19 | 32 | $ai < $ma or $bi < $mb |
389 | 17 | 5 | 20 | $ai <= $lastA or $bi <= $lastB |
485 | 5 | 2 | 4 | $ai < @$a or $bi < @$b |
572 | 314 | 226 | 110 | 1 == $seq or 2 == $seq |
616 | 12 | 44 | 274 | $pos < 0 or $$me[3] <= $pos |