Branch Coverage

blib/lib/Lingua/YaTeA/Tree.pm
Criterion Covered Total %
branch 39 94 41.4


line true false branch
74 38 0 if (defined $this->getNodeSet)
127 0 0 unless (defined $fh)
135 0 0 if (defined $this->getSimplifiedIndexSet)
142 0 0 if (defined $this->getNodeSet)
184 85 0 if ($if eq $phrase->getIF) { }
242 0 8 if (scalar @$free_nodes_a > 1)
253 0 0 if ($success == 1)
286 0 0 if (&blessed($discontinuous_infos_a->[0]) and $discontinuous_infos_a->[0]->isa('Lingua::YaTeA::Node'))
292 0 0 if ($discontinuous_infos_a->[0]->completeGap($discontinuous_infos_a->[1], $discontinuous_infos_a->[2], $this, $parsing_pattern_set, $parsing_direction, $tag_set, $words_a, $fh) == 1)
297 0 0 if ($discontinuous_infos_a = $discontinuous_infos_a->[0]->isDiscontinuous(\$previous, $words_a, $fh) and (&blessed($discontinuous_infos_a->[0]) and $discontinuous_infos_a->[0]->isa('Lingua::YaTeA::Node')))
323 0 18 if (&blessed($discontinuous_infos_a->[0]) and $discontinuous_infos_a->[0]->isa('Lingua::YaTeA::Node'))
376 9 0 if (not $index_set->moreThanOneInCommon($this->getIndexSet)) { }
378 0 9 if (scalar @$node_sets > 1)
386 9 0 if ($i == 0) { }
398 9 0 if ($tree->append($to_add, $index_set, $new_trees_a, $words_a, $tagset, $fh)) { }
431 26 48 unless (defined $this->getNodeSet)
435 0 26 if ($this->getSimplifiedIndexSet->simplify($added_index_set, $added_node_set, $this, $pivot) == -1)
451 22 26 unless ($this->getIndexSet->indexExists($pivot))
456 45 3 if (defined $pivot) { }
461 45 0 if (defined $root)
479 48 0 if (defined $mode)
484 3 45 if ($mode eq 'DISJUNCTION') { }
491 23 22 if ($mode =~ /INCLUSION/) { }
499 22 0 if ($mode =~ /ADJUNCTION/)
503 0 22 if ($addition == -1)
507 48 0 if ($modified == 1)
509 0 48 if ($this->getSimplifiedIndexSet->simplify($added_index_set, $added_node_set, $this, $pivot, $fh) == -1)
521 48 0 if ($addition == 1)
545 16 6 if ($added_node_set->getRoot->searchHead(0)->getIndex == $pivot)
552 16 0 if (defined $root and defined $root2)
556 0 1 if ($above->{'LINKED_TO_ISLAND'} == 0 or $above->getEdgeStatus($place) eq 'MODIFIER' or $above->{'LINKED_TO_ISLAND'} == 1 and $added2->getRoot->{'LINKED_TO_ISLAND'} == 1)
572 15 0 if ($above->hitch($place, $added2->getRoot, $words_a, $fh))
575 15 0 if ($tree2->getSimplifiedIndexSet->simplify($added_index_set, $added2, $tree2, $pivot) != -1) { }
598 22 0 if ($root->searchHead(0)->getIndex == $pivot)
603 22 0 if (defined $above)
605 22 0 if ($above->hitch($place, $root, $words_a, $fh))
631 23 0 if ($mode =~ /REVERSED/) { }
661 23 0 if (defined $above)
665 23 0 if (defined $above)
670 23 0 if ($above->hitch($place, $below, $words_a, $fh))
711 0 0 if ($mode =~ /INSERTION/) { }
713 0 0 if ($mode =~ /REVERSED/) { }
729 0 0 if (not $mode =~ /MIDDLE/) { }
735 0 0 if ($root->{'LINKED_TO_ISLAND'} == 0)
742 0 0 if (defined $below)
753 0 0 if (defined $below)
772 0 0 if ($simplified_index_set->simplifyWithSeveralPivots($index_set, $this->getNodeSet, $this, $heads_h) == -1)