Branch Coverage

blib/lib/Lingua/YaTeA/MultiWordPhrase.pm
Criterion Covered Total %
branch 49 102 48.0


line true false branch
24 80 1 unless ref $this
41 27 0 if (scalar @$sub_indexes_set_a > 0)
46 259 16 unless (defined $this->getIslandSet and $this->getIslandSet->existIsland($sub_index) || $this->getIslandSet->existLargerIsland($sub_index))
56 1 258 if ($source_a = $phrase_set->searchFromIF($sub_index->buildIFSequence($this->getWords))) { }
62 5 253 if ($source_a = $phrase_set->searchFromLF($sub_index->buildLFSequence($this->getWords)))
84 0 0 if ($parsing_direction eq 'LEFT') { }
86 0 0 if ($a->getIndexSet->getFirst == $b->getIndexSet->getFirst) { }
97 0 0 if ($parsing_direction eq 'RIGHT')
99 0 0 if ($a->getIndexSet->getLast == $b->getIndexSet->getLast) { }
124 11 0 if (&blessed($this) and $this->isa('Lingua::YaTeA::MultiWordPhrase'))
129 9 2 if ($island->isIntegrated == 0)
132 4 5 if ($test == 1)
158 9 0 unless (defined $this->getForest)
169 9 0 if ($success == 1)
181 9 0 if ($integrated_at_least_once == 1) { }
203 20 0 if (defined $island->getSource->getWord($i)) { }
204 9 11 if ($island->getSource->getWord($i)->getPOS ne $this->getWord($index)->getPOS)
207 4 5 if (lc $island->getSource->getWord($i)->getIF eq lc $this->getWord($index)->getIF)
210 4 0 if ($this->isCorrectedWord($index) == 0)
219 0 20 if ($island->getSource->getWord($i)->getLF ne $this->getWord($index)->getLF)
221 0 0 if ($this->isCorrectedWord($index) == 0)
241 0 4 if (defined $this->getCorrectedWords)
245 0 0 if ($i == $index)
266 4 0 if ($type eq 'POS') { }
295 0 72 if ($this->getLength > $max_length)
307 0 0 unless (defined $this->getIslandSet)
321 6 3 if ($type eq 'endogenous') { }
331 9 0 if (&blessed($source) and $source->isa('Lingua::YaTeA::MultiWordPhrase'))
358 9 0 unless (defined $this->getIslandSet)
376 3 0 if (&blessed($concurrent_set_a->[0]) and $concurrent_set_a->[0]->isa('Lingua::YaTeA::MultiWordTestifiedTerm'))
381 3 0 if ($concurrent->getLength <= $this->getLength)
384 3 0 if ($concurrent->getIfParsable($parsing_pattern_set, $tag_set, $parsing_direction))
408 0 3 if (scalar @$concurrent_set_a > 1) { }
438 3 0 unless (defined $this->getIslandSet and $this->getIslandSet->existIsland($index) || $this->getIslandSet->existLargerIsland($index))
482 8 19 if (defined $this->getForest)
500 0 8 if ($tree_updated == 1) { }
504 0 0 if (scalar @{$tree->getNodeSet->getNodes;} > 0)
507 0 0 if (scalar @$unplugged_a > 0)
529 8 0 if (scalar @tmp_forest > 0) { }
560 0 11 if (not defined $this->getForest) { }
569 0 11 if ($tree->getSimplifiedIndexSet->getSize == 1) { }
582 0 11 if ($parsed == 1) { }
615 0 0 if (scalar @$best_set_a > 1)
653 0 0 if ($this->getWord($i)->getIF eq $testified_term->getWord($j)->getIF)
674 0 0 if ($this->getWord($i)->getPOS eq $testified_term->getWord($j)->getPOS)
688 72 0 if (defined $fh) { }
690 3 69 if (defined $this->getIslandSet) { }
702 0 0 if (defined $this->getIslandSet) { }
718 72 0 if (defined $fh) { }
725 45 27 if ($this->isTC)
742 0 0 if ($this->isTC)