Branch Coverage

blib/lib/Lingua/YaTeA/MultiWordTermCandidate.pm
Criterion Covered Total %
branch 16 48 33.3


line true false branch
76 112 30 if (&blessed(scalar $this->getRootHead) and $this->getRootHead->isa('Lingua::YaTeA::MonolexicalTermCandidate')) { }
82 30 0 if ($depth < 40)
94 70 48 if ($maximal == 1) { }
147 30 88 if (defined $phrase_island_set and $phrase_island_set->size != 0)
154 24 6 if ($this->getIndexSet->contains($island->getIndexSet))
157 18 6 if ($island->getType ne 'endogenous' or $this->getIndexSet->joinAll('-') ne $island->getIndexSet->joinAll('-'))
190 11 5 if ($type eq 'endogenous') { }
193 11 0 if (exists $$mapping_from_phrases_to_TCs_h{$island->getSource->getID}) { }
225 32 192 if (scalar @{$this->getIslands;} > 0)
255 0 0 if (defined $prep) { }
275 0 0 if (defined $det)
285 0 0 if ($chained_links == 1)
310 0 0 if (scalar @$set_a > 1) { }
319 0 0 if ($type eq 'CH')
321 0 0 if ($left < $right - 1)
326 0 0 unless (defined $previous_right)
332 0 0 if (exists $recorded{$search}) { }
387 0 0 if ($first_element_of_link1 != $first_element_of_link2)
404 0 0 if (scalar @$links_a > 1)
412 0 0 if (exists $first_h->{$first_word})
414 0 0 if ($second_word_of_other_link < $second_word)
419 0 0 if (exists $second_h->{$second_word})
421 0 0 if ($first_word_of_other_link > $first_word)
438 0 0 if (exists $LGPmapping_h->{$link_key}) { }