Branch Coverage

blib/lib/Text/OverlapFinder.pm
Criterion Covered Total %
branch 35 64 54.6


line true false branch
36 0 0 if ($arg =~ /stoplist/i) { }
0 0 elsif ($arg =~ /stemmer/i) { }
38 0 0 if (-z $stoplist)
44 0 0 unless (ref $stemmer)
55 0 5 if (defined $stoplist)
59 0 5 if (defined $stemmer)
92 0 45 if ($stopregex ne '')
100 0 45 if ($stemmingReqd)
130 1047 55 if (&contains(\@words1, $first{$words0[$matchStartIndex]}, @words0[$matchStartIndex .. $currIndex])) { }
136 19 36 if $overlapsLengths[$matchStartIndex] > 0
152 1052 48 if $overlapsLengths[$i] < $longestOverlap
159 44 4 if (exists $first{$words0[$i]} and &containsReplace(\@words1, $first{$words0[$i]}, @words0[$i .. $stringEnd])) { }
177 12 0 if $overlapsLengths[$j] <= $i - $j
191 0 2 if &contains(\@words1, $first{$words0[$i]}, @words0[$i .. $stringEnd])
214 36 1068 unless defined $positions
218 2 1066 if $#{$array2_ref;} < $#array1
222 5 1063 if $j > $#{$array2_ref;} - $#array1
224 2 1061 if $array2_ref->[$j] eq '###'
226 1061 0 if ($array1[0] eq $array2_ref->[$j])
229 14 37151 if ($$array2_ref[$j + $i] eq '###' or $array1[$i] ne $$array2_ref[$j + $i])
235 1047 14 if ($match)
253 0 48 unless defined $positions
257 0 48 if $#{$array2_ref;} < $#array1
262 0 48 if $j > $#{$array2_ref;} - $#array1
264 4 44 if $array2_ref->[$j] eq '###'
266 44 0 if ($array1[0] eq $array2_ref->[$j])
269 0 999 if ($$array2_ref[$j + $i] eq '###' or $array1[$i] ne $$array2_ref[$j + $i])
277 44 0 if ($match)
297 0 0 unless ($word =~ /$stopregex/)
309 0 0 unless open FH, '<', $list
314 0 0 if ($_ ne '')
317 0 0 if ($_ =~ /\\b/) { }