Branch Coverage

blib/lib/Text/StemTagPOS.pm
Criterion Covered Total %
branch 62 136 45.5


line true false branch
118 0 4 if exists $Parameters{'isoLangCode'}
122 4 0 if ($isoLangCode eq 'en') { }
136 4 0 unless (exists $Parameters{'endingSentenceTag'})
142 4 0 if substr($$Self{'endingSentenceTag'}, 0, 1) ne '/'
268 0 4322 unless defined $text
273 4322 0 unless ($cleanedText =~ /^\s*$/)
342 16342 14 if ($position >= $startingIndex)
356 12 16330 if ($listOfWords[$i][4] == -1)
362 12 2 if $listOfWords[$i][4] != -1
366 0 12 if $totalMissingWords < 0
372 12 0 if ($noPositionStartIndex > 0)
379 12 0 if ($noPositionEndIndex < $totalWords)
395 0 12 if $totalMissingWords < $substringsToMatch
413 4322 23978 unless defined $newListOfSentences[$currentSentenceId]
415 11944 16356 if ($$word[2] eq '/PGP') { }
445 4322 0 if exists $Parameters{'positionOffset'} and defined $Parameters{'positionOffset'}
466 0 4322 if (exists $Parameters{'test'} and $Parameters{'test'})
474 0 0 if ($listOfWordsAndGaps[$i - 1][4] > $listOfWordsAndGaps[$i][4])
480 0 0 if ($listOfWordsAndGaps[$i - 1][5] < 1)
504 4322 0 if exists $Parameters{'positionOffset'} and defined $Parameters{'positionOffset'}
507 0 4322 unless (defined $Parameters{'listOfSubstringPositions'})
509 0 0 if (not defined $Parameters{'stringLength'}) { }
517 0 0 if (int $Parameters{'stringLength'} > 0) { }
542 0 16356 if $$listOfSubstringPositions[$i][5] < 1
543 0 16356 if $$listOfSubstringPositions[$i][4] < 0
551 4322 0 if exists $Parameters{'stringLength'}
555 0 4322 if (not defined $stringLength and $totalSubstrings)
561 0 0 if $last > $stringLength
567 0 4322 unless defined $stringLength and $stringLength > 0
570 0 4322 unless ($totalSubstrings)
588 0 4322 if ($$currentSubstringInfo[4] > $positionOffset)
611 11944 90 if ($gapLength > 0)
624 0 4322 if ($$currentSubstringInfo[4] + $$currentSubstringInfo[5] < $stringLength)
633 0 4322 if (exists $Parameters{'test'} and $Parameters{'test'})
643 0 0 if ($allSubstrings[$i - 1][4] + $allSubstrings[$i - 1][5] < $allSubstrings[$i][4])
736 0 0 if (exists $$hashOfPOSToKeep{$$token[2]})
857 0 442744 unless exists $$hashOfPOSToKeep{$$word[2]}
870 442744 0 unless exists $wordIndices{$$word[0]}
888 11360 15681 unless exists $$hashOfPOSToKeep{$$word[2]}
905 0 15681 if $wordsOfText[$textIndex][0] cmp $$StemmedWordList[$stemmedIndex][0]
923 4321 0 if (exists $wordIndices{$$firstWord[0]})
935 4321 0 if ($matchingLength == $wordsInPhrase)
996 16356 16356 if (substr($item, 0, 1) eq '/') { }
1009 16356 0 if (not defined $wordOrPhrase) { }
1025 24 16332 if ($$wordTag[2] eq $$Self{'endingSentenceTag'}) { }
1028 0 24 unless $#$currentSentence > -1
1044 4321 1 if ($#$currentSentence > -1)
1073 4321 4323 if ($type eq '') { }
1 4322 elsif ($type eq 'SCALAR') { }
0 4322 elsif ($type eq 'ARRAY') { }
0 4322 elsif ($type eq 'REF') { }
1162 0 1 if exists $Parameters{'listOfPOSTypesToKeep'}
1170 0 0 if (($ucType cmp 'NOUNS') == 0) { }
0 0 elsif (($ucType cmp 'VERBS') == 0) { }
0 0 elsif (($ucType cmp 'ADJECTIVES') == 0) { }
0 0 elsif (($ucType cmp 'ADVERBS') == 0) { }
0 0 elsif (($ucType cmp 'CONTENT_ADVERBS') == 0) { }
0 0 elsif (($ucType cmp 'PUNCTUATION') == 0) { }
0 0 elsif (($ucType cmp 'CONTENT_WORDS') == 0) { }
0 0 elsif (($ucType cmp 'TEXTRANK_WORDS') == 0) { }
0 0 elsif (($ucType cmp 'ALL') == 0) { }
1193 303 1 if (not exists $Parameters{'listOfPOSTagsToKeep'} || exists $Parameters{'listOfPOSTypesToKeep'}) { }
1195 300 3 unless exists $Parameters{'instantiation'}
1201 1 0 if exists $Parameters{'listOfPOSTagsToKeep'}
1259 0 0 unless exists $$hashOfPOSToKeep{$$word[2]}
1314 0 0 unless exists $wordOccurence{$$word[0]}
1317 0 0 if ($wordOccurence{$$word[0]} < $i)
1333 0 0 if $occurence == $totalDocuments