Branch Coverage

blib/lib/Lingua/YaTeA/MultiWordUnit.pm
Criterion Covered Total %
branch 34 60 56.6


line true false branch
16 0 81 unless ref $this
93 70 3 if (not defined $this->getForest) { }
95 45 25 if ($record = $parsing_pattern_set->existRecord($this->getPOS))
108 1 2 if ($record = $parsing_pattern_set->existRecord($simplified_pos))
128 1 45 if (defined $this->{'FOREST'} and $this->forestSize > 0) { }
140 1 0 if ($tree->append($node_set, $tree->getSimplifiedIndexSet, \@concurrent_trees, $this->getWords, $tag_set) == 1)
156 45 0 if ($tree->check($this))
177 0 66 if ($parsing_direction eq 'LEFT') { }
194 0 0 unless (&blessed($pattern) and $pattern->isa('Lingua::YaTeA::ParsingPattern'))
208 2 64 unless (&blessed($pattern) and $pattern->isa('Lingua::YaTeA::ParsingPattern'))
232 0 140 if ($bounded_POS =~ /^$qm_key/)
261 66 4554 if ($bounded_POS =~ /$qm_key$/)
291 2 0 if ($first->getDirection eq $parsing_direction) { }
293 2 0 if ($second->getDirection eq $parsing_direction) { }
295 1 1 if ($first->getNumContentWords > $second->getNumContentWords) { }
301 1 0 if ($first->getNumContentWords < $second->getNumContentWords) { }
318 0 0 if ($second->getDirection eq $parsing_direction) { }
324 0 0 if ($first->getNumContentWords > $second->getNumContentWords) { }
330 0 0 if ($first->getNumContentWords < $second->getNumContentWords) { }
347 71 0 if (&blessed($this) and $this->isa('Lingua::YaTeA::Phrase'))
358 48 0 if (defined $this->{'PARSING_METHOD'}) { }
383 19 8 if (not defined $this->getForest) { }
401 40 66 if ($tree->getSimplifiedIndexSet->getSize == 1) { }
403 40 0 if ($tree->check($this))
417 64 2 if (&blessed($pattern) and $pattern->isa('Lingua::YaTeA::ParsingPattern')) { }
423 0 64 if ($tree->append($node_set, $partial_index_set, \@concurrent_trees, $this->getWords, $tag_set, $fh) == -1)
447 0 0 if (defined $this->getForest) { }
468 45 0 if (defined $fh) { }
470 45 0 if (defined $this->getForest) { }
487 0 0 if (defined $this->getForest) { }