Condition Coverage

blib/lib/Lingua/YaTeA/Node.pm
Criterion Covered Total %
condition 60 333 18.0


and 3 conditions

line !l l&&!r l&&r condition
71 0 0 49 &blessed($this) and $this->isa('Lingua::YaTeA::Edge')
93 0 0 0 &blessed($this) and $this->isa('Lingua::YaTeA::Edge')
270 0 0 0 &blessed($left_edge) and $left_edge->isa('Lingua::YaTeA::RootNode')
311 0 0 0 &blessed($this) and $this->isa('Lingua::YaTeA::InternalNode')
323 0 0 0 &blessed(scalar $this->getPreposition) and $this->getPreposition->isa('Lingua::YaTeA::TermLeaf')
336 0 0 0 &blessed(scalar $this->getPreposition) and $this->getPreposition->isa('Lingua::YaTeA::TermLeaf')
355 0 0 0 &blessed($left_edge) and $left_edge->isa('Lingua::YaTeA::Node')
359 0 0 0 &blessed($right_edge) and $right_edge->isa('Lingua::YaTeA::Node')
368 0 0 111 &blessed($this) and $this->isa('Lingua::YaTeA::RootNode')
408 0 0 5 &blessed($head) and $head->isa('Lingua::YaTeA::TermLeaf')
0 0 5 defined $head and (&blessed($head) and $head->isa('Lingua::YaTeA::TermLeaf'))
416 1 0 4 &blessed($node) and $node->isa('Lingua::YaTeA::Node')
447 0 0 0 &blessed($above) && $above->isa('Lingua::YaTeA::RootNode')
0 0 0 $above->searchRightMostLeaf(\$depth)->getIndex < $below->searchRightMostLeaf(\$depth)->getIndex and not &blessed($above) && $above->isa('Lingua::YaTeA::RootNode')
0 0 0 $above->searchRightMostLeaf(\$depth)->getIndex < $below->searchRightMostLeaf(\$depth)->getIndex and not &blessed($above) && $above->isa('Lingua::YaTeA::RootNode') and $above->getFather->getLeftEdge->searchRightMostLeaf(\$depth)->getIndex < $below->searchRightMostLeaf(\$depth)->getIndex
463 0 0 0 &blessed($above) && $above->isa('Lingua::YaTeA::RootNode')
1 0 0 $above->searchLeftMostLeaf(\$depth)->getIndex > $below->searchLeftMostLeaf(\$depth)->getIndex and not &blessed($above) && $above->isa('Lingua::YaTeA::RootNode')
1 0 0 $above->searchLeftMostLeaf(\$depth)->getIndex > $below->searchLeftMostLeaf(\$depth)->getIndex and not &blessed($above) && $above->isa('Lingua::YaTeA::RootNode') and $above->getFather->getRightEdge->searchLeftMostLeaf(\$depth)->getIndex > $below->searchLeftMostLeaf(\$depth)->getIndex
511 0 0 1 &blessed($head) and $head->isa('Lingua::YaTeA::TermLeaf')
0 0 1 defined $head and (&blessed($head) and $head->isa('Lingua::YaTeA::TermLeaf'))
515 1 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::Node')
581 0 0 64 &blessed($to_add) and $to_add->isa('Lingua::YaTeA::RootNode')
586 0 64 0 &blessed($$this{$place . '_EDGE'}) and $$this{$place . '_EDGE'}->isa('Lingua::YaTeA::InternalNode')
624 0 0 0 &blessed($$this{$head_position . '_EDGE'}) and $$this{$head_position . '_EDGE'}->isa('Lingua::YaTeA::TermLeaf')
758 0 0 0 $index != $previous + 1 and $pivot == $previous + 1
0 0 0 $index != $previous + 1 and $pivot == $previous + 1 and !defined($both[$i + 1]) || $pivot == $both[$i + 1]
796 0 63 208 &blessed($this) and $this->isa('Lingua::YaTeA::RootNode')
811 0 120 151 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::TermLeaf')
822 0 165 106 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::TermLeaf')
851 0 6 1 &blessed($left) and $left->isa('Lingua::YaTeA::Node')
869 0 0 0 &blessed($right) and $right->isa('Lingua::YaTeA::Node')
892 0 0 0 &blessed($this) and $this->isa('Lingua::YaTeA::RootNode')
911 0 0 0 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::Node')
931 0 0 0 &blessed($this) and $this->isa('Lingua::YaTeA::RootNode')
950 0 0 0 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::Node')
988 0 151 28 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::InternalNode')
1008 0 113 66 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::InternalNode')
1028 0 45 1 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::InternalNode')
1051 0 46 0 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::InternalNode')
1060 0 45 1 &blessed($this) and $this->isa('Lingua::YaTeA::InternalNode')
1083 0 77 3 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::Node')
1100 0 45 6 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::Node')
1128 0 0 11 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::TermLeaf')
1146 0 2 9 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::TermLeaf')
1180 0 9 109 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::TermLeaf')
1233 0 39 79 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::TermLeaf')
1336 0 0 0 &blessed($left) and $left->isa('Lingua::YaTeA::Node')
1350 0 0 0 &blessed($right) and $right->isa('Lingua::YaTeA::Node')
1362 0 51 332 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::TermLeaf')
1378 0 158 225 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::TermLeaf')
1422 0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node')
1446 0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node')
1486 0 0 0 $place ne 'PREP' and $place ne 'DET'
1556 0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode')
0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode') and $node->getFather->getEdgeStatus($position) eq 'HEAD'
0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode') and $node->getFather->getEdgeStatus($position) eq 'HEAD' and $position eq 'LEFT' && $node->getRightEdge->searchLeftMostLeaf->getIndex < $to_insert || $position eq 'RIGHT' && $node->getFather->getRightEdge->searchLeftMostLeaf->getIndex < $to_insert
1588 0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode')
0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode') and $node->getEdgeStatus($position) eq 'HEAD'
0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode') and $node->getEdgeStatus($position) eq 'HEAD' and $position eq 'LEFT' && $node->getFather->getLeftEdge->searchRightMostLeaf->getIndex > $to_insert || $position eq 'RIGHT' && $node->getLeftEdge->searchRightMostLeaf->getIndex > $to_insert
1628 0 0 0 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::TermLeaf')
1670 0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::Node')
1672 0 0 0 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::TermLeaf')
1745 0 0 22 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::TermLeaf')
1748 18 4 0 $$previous_r != -1 and $this->getLeftEdge->getIndex > $$previous_r + 1
1776 0 0 0 &blessed($infos_a->[0]) and $infos_a->[0]->isa('Lingua::YaTeA::Node')
1787 0 0 0 $$previous_r != -1 and $this->getPreposition->getIndex > $$previous_r + 1
1808 0 0 0 $$previous_r != -1 and $this->getDeterminer->getIndex > $$previous_r + 1
1827 0 4 18 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::TermLeaf')
1833 0 18 0 $$previous_r != -1 and $this->getRightEdge->getIndex > $$previous_r + 1
1854 0 0 4 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::Node')
1876 4 0 0 &blessed($infos_a->[0]) and $infos_a->[0]->isa('Lingua::YaTeA::Node')
1900 0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode')
0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode') and not defined $node->getPreposition
0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode') and not defined $node->getPreposition and $node->getFather->getID != $this->getID
1924 0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode')
0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode') and not defined $node->getPreposition
0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode') and not defined $node->getPreposition and $node->getFather->getID != $this->getID
1971 0 0 0 &blessed($pattern) and $pattern->isa('Lingua::YaTeA::ParsingPattern')
2092 0 0 0 &blessed($this) and $this->isa('Lingua::YaTeA::InternalNode')
2121 0 0 0 defined $place and $place =~ /EDGE/
2128 0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node')
2152 0 0 0 defined $node and $place =~ /(LEFT|RIGHT)/
2163 0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node')
2172 0 0 0 defined $new_next and $new_next->getIndex > $index
2199 0 0 0 defined $hook_node and $hook_node->hitch($place, $node_set->getRoot, $words_a)
2256 0 0 0 &blessed($hook_node) and $hook_node->isa('Lingua::YaTeA::Node')
2295 0 0 0 &blessed($hook_node) and $hook_node->isa('Lingua::YaTeA::Node')
2351 0 0 0 $pattern = $this->getPatternOnTheLeft($POS, $parsing_pattern_set, $parsing_direction) and $pattern == 0
2368 0 0 0 $pattern = $this->getPatternOnTheRight($POS, $parsing_pattern_set, $parsing_direction) and $pattern == 0
2517 10 9 0 $hook->getEdgeStatus($place) eq 'MODIFIER' and $hook->getEdge($other_place{$place})->searchRightMostLeaf->getIndex > $below_index_set->getFirst
2532 0 0 19 &blessed($hook) && $hook->isa('Lingua::YaTeA::RootNode')
19 0 0 not &blessed($hook) && $hook->isa('Lingua::YaTeA::RootNode') and $place eq 'RIGHT' && $hook->getEdge($other_place{$place})->searchRightMostLeaf->getIndex > $below_index_set->getFirst || $place eq 'LEFT' && $hook->getFather->getLeftEdge->searchRightMostLeaf->getIndex > $below_index_set->getFirst
0 0 0 not &blessed($hook) && $hook->isa('Lingua::YaTeA::RootNode') and $place eq 'RIGHT' && $hook->getEdge($other_place{$place})->searchRightMostLeaf->getIndex > $below_index_set->getFirst || $place eq 'LEFT' && $hook->getFather->getLeftEdge->searchRightMostLeaf->getIndex > $below_index_set->getFirst and $hook->getEdgeStatus($place) eq 'HEAD'
2554 0 0 0 &blessed($hook) and $hook->isa('Lingua::YaTeA::InternalNode')
2582 0 0 0 &blessed($hook) and $hook->isa('Lingua::YaTeA::InternalNode')
2608 0 11 0 &blessed(scalar $this->getLeftEdge) and $this->getLeftEdge->isa('Lingua::YaTeA::Node')
2612 0 9 2 &blessed(scalar $this->getRightEdge) and $this->getRightEdge->isa('Lingua::YaTeA::Node')

or 3 conditions

line l !l&&r !l&&!r condition
758 0 0 0 !defined($both[$i + 1]) || $pivot == $both[$i + 1]
974 0 0 0 defined $previous or defined $next
1422 0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node') or $node->getEdge($place)->getIndex != $previous_index
0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node') or $node->getEdge($place)->getIndex != $previous_index or $node->getEdgeStatus($place) ne 'HEAD'
1446 0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node') or $node->getEdge($place)->getIndex != $next_index
0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node') or $node->getEdge($place)->getIndex != $next_index or $node->getEdgeStatus($place) ne 'HEAD'
1556 0 0 0 $position eq 'LEFT' && $node->getRightEdge->searchLeftMostLeaf->getIndex < $to_insert || $position eq 'RIGHT' && $node->getFather->getRightEdge->searchLeftMostLeaf->getIndex < $to_insert
1588 0 0 0 $position eq 'LEFT' && $node->getFather->getLeftEdge->searchRightMostLeaf->getIndex > $to_insert || $position eq 'RIGHT' && $node->getLeftEdge->searchRightMostLeaf->getIndex > $to_insert
2128 0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node') or $node->getEdge($place)->getIndex != $previous
0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node') or $node->getEdge($place)->getIndex != $previous or $node->getEdgeStatus($place) ne 'HEAD'
2163 0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node') or $node->getEdge($place)->getIndex != $next
0 0 0 &blessed(scalar $node->getEdge($place)) and $node->getEdge($place)->isa('Lingua::YaTeA::Node') or $node->getEdge($place)->getIndex != $next or $node->getEdgeStatus($place) ne 'HEAD'
2235 0 0 0 $parsing_direction eq 'RIGHT' or $attached == 0
2532 0 0 0 $place eq 'RIGHT' && $hook->getEdge($other_place{$place})->searchRightMostLeaf->getIndex > $below_index_set->getFirst || $place eq 'LEFT' && $hook->getFather->getLeftEdge->searchRightMostLeaf->getIndex > $below_index_set->getFirst