Branch Coverage

blib/lib/Text/OverlapFinder.pm
Criterion Covered Total %
branch 31 56 55.3


line true false branch
30 0 0 if ($arg =~ /stoplist/i) { }
0 0 elsif ($arg =~ /stemmer/i) { }
32 0 0 if (-z $stoplist)
38 0 0 unless (ref $stemmer)
49 0 5 if (defined $stoplist)
53 0 5 if (defined $stemmer)
84 0 45 if ($stopregex ne '')
92 0 45 if ($stemmingReqd)
116 1047 55 if (contains @words1, @words0[$matchStartIndex .. $currIndex]) { }
122 19 36 if $overlapsLengths[$matchStartIndex] > 0
138 1052 48 if $overlapsLengths[$i] < $longestOverlap
145 44 4 if (containsReplace @words1, @words0[$i .. $stringEnd]) { }
161 12 0 if $overlapsLengths[$j] <= $i - $j
174 0 2 if contains @words1, @words0[$i .. $stringEnd]
195 10 1094 if $#{$array2_ref;} < $#array1
198 4 1407 if $$array2_ref[$j] eq '###'
200 1061 346 if ($array1[0] eq $$array2_ref[$j])
203 14 37151 if ($$array2_ref[$j + $i] eq '###' or $array1[$i] ne $$array2_ref[$j + $i])
209 1047 14 if ($match)
225 0 48 if $#{$array2_ref;} < $#array1
228 26 71 if $$array2_ref[$j] eq '###'
230 44 27 if ($array1[0] eq $$array2_ref[$j])
233 0 999 if ($$array2_ref[$j + $i] eq '###' or $array1[$i] ne $$array2_ref[$j + $i])
241 44 0 if ($match)
261 0 0 unless ($word =~ /$stopregex/)
273 0 0 unless open FH, '<', $list
278 0 0 if ($_ ne '')
281 0 0 if ($_ =~ /\\b/) { }