Condition Coverage

blib/lib/Lingua/AlignmentSlice.pm
Criterion Covered Total %
condition 0 117 0.0


and 3 conditions

line !l l&&!r l&&r condition
174 0 0 0 not $failed and $k < @{$$alSlice{$source . 'Al'}[$j];}
176 0 0 0 @{$$alSlice{$target . 'Al'}[$i];} == 1 and $$alSlice{$target . 'Al'}[$i][0] == $j
184 0 0 0 not $failed and %candidate > 0
225 0 0 0 @{$$alSlice{$source . 'Al'};} == 2 and @{$$alSlice{$source . 'Al'}[0];} == 0
0 0 0 @{$$alSlice{$source . 'Al'};} == 2 and @{$$alSlice{$source . 'Al'}[0];} == 0 and @{$$alSlice{$target . 'Words'};} - scalar(keys %{$$alSlice{$target . 'Indices'};}) < 4
232 0 0 0 not $failed and $k < @{$$alSlice{$source . 'Al'}[$j];}
235 0 0 0 @{$$alSlice{$target . 'Al'}[$i];} == 1 and $$alSlice{$target . 'Al'}[$i][0] == $j
268 0 0 0 $sourceSize > 0 and $targetSize > 0
0 0 0 $sourceSize > 0 and $targetSize > 0 and $sourceSize > 1 || $targetSize > 1
0 0 0 $sourceSize > 0 and $targetSize > 0 and $sourceSize > 1 || $targetSize > 1 and not $alSlice->sparse('source')
0 0 0 $sourceSize > 0 and $targetSize > 0 and $sourceSize > 1 || $targetSize > 1 and not $alSlice->sparse('source') and not $alSlice->sparse('target')
316 0 0 0 $sourceSize > 0 and $targetSize > 0
0 0 0 $sourceSize > 0 and $targetSize > 0 and $sourceSize > 1 || $targetSize > 1
355 0 0 0 $sourceSize > 1 and $targetSize > 1
0 0 0 $sourceSize > 1 and $targetSize > 1 and not $alSlice->sparse('source')
0 0 0 $sourceSize > 1 and $targetSize > 1 and not $alSlice->sparse('source') and not $alSlice->sparse('target')
387 0 0 0 $numSourceIndicesToProcess > 0 and $numTargetIndicesToProcess > 0
431 0 0 0 $k <= @{$allWords[$interPunctuationIdx];} and $k < 7
443 0 0 0 @words > 0 and @words < $minK
0 0 0 @words > 0 and @words < $minK and $j == 0 || $j == @{$allWords[$interPunctuationIdx];} - $k
673 0 0 0 $idx < @sortedMatchNums and $idx < 2
715 0 0 0 $idx > 0 and @candsWithoutCrossLink > 0
766 0 0 0 $idx < @$groups and scalar keys %{$clusterPositions{$k};} > 0
802 0 0 0 defined $$alSlice{'sourceAl'}[$j] and @{$$alSlice{'sourceAl'}[$j];} > 0
0 0 0 defined $$alSlice{'sourceAl'}[$j] and @{$$alSlice{'sourceAl'}[$j];} > 0 and $j < $first_j || $j > $last_j
812 0 0 0 defined $$alSlice{'targetAl'}[$i] and @{$$alSlice{'targetAl'}[$i];} > 0
0 0 0 defined $$alSlice{'targetAl'}[$i] and @{$$alSlice{'targetAl'}[$i];} > 0 and $i < $first_i || $i > $last_i
825 0 0 0 $$alSlice{'sourceIndices'}{$j} and $$alSlice{'targetIndices'}{$i}

or 3 conditions

line l !l&&r !l&&!r condition
268 0 0 0 $sourceSize > 1 || $targetSize > 1
316 0 0 0 $sourceSize > 1 || $targetSize > 1
391 0 0 0 $lastChance or $modifications
402 0 0 0 $nscan == 0 or $modifications
414 0 0 0 $toProcess{$side . 'Words'}[$idx] =~ /[\(\)\?\277!\241\.,]/ or not $$alSlice{$side . 'Indices'}{$toProcess{$side . 'WordPos'}[$idx]}
416 0 0 0 $idx == 0 or $idx == @{$toProcess{$side . 'Words'};} - 1
0 0 0 $idx == 0 or $idx == @{$toProcess{$side . 'Words'};} - 1 or $pushed == 0
443 0 0 0 $j == 0 || $j == @{$allWords[$interPunctuationIdx];} - $k
751 0 0 0 $isInCluster{'1'} or $isInCluster{'2'}
802 0 0 0 $j < $first_j || $j > $last_j
812 0 0 0 $i < $first_i || $i > $last_i