Condition Coverage

blib/lib/Lingua/YaTeA/NodeSet.pm
Criterion Covered Total %
condition 26 78 33.3


and 3 conditions

line !l l&&!r l&&r condition
43 0 94 606 &blessed($node) and $node->isa('Lingua::YaTeA::RootNode')
84 280 0 430 defined $this->getRoot && exists $nodes_id{$this->getRoot->getID}
0 384 46 &blessed(scalar $this->getRoot) and not $this->getRoot->isa('Lingua::YaTeA::RootNode')
121 0 63 208 &blessed($node) and $node->isa('Lingua::YaTeA::RootNode')
63 204 4 &blessed($node) and $node->isa('Lingua::YaTeA::RootNode') and $node ne $this->getRoot
161 0 138 81 &blessed($node) and $node->isa('Lingua::YaTeA::RootNode')
184 0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::InternalNode')
186 0 0 0 $node->getFather->getLeftEdge->isa('Lingua::YaTeA::InternalNode') and $node->getFather->getLeftEdge->getID == $node->getID
0 0 0 &blessed(scalar $node->getFather->getLeftEdge) and ($node->getFather->getLeftEdge->isa('Lingua::YaTeA::InternalNode') and $node->getFather->getLeftEdge->getID == $node->getID)
198 0 0 0 $node->getFather->getRightEdge->isa('Lingua::YaTeA::InternalNode') and $node->getFather->getRightEdge->getID == $node->getID
0 0 0 &blessed(scalar $node->getFather->getRightEdge) and ($node->getFather->getRightEdge->isa('Lingua::YaTeA::InternalNode') and $node->getFather->getRightEdge->getID == $node->getID)
210 0 0 0 &blessed(scalar $node->getLeftEdge) and $node->getLeftEdge->isa('Lingua::YaTeA::Node')
223 0 0 0 &blessed(scalar $node->getRightEdge) and $node->getRightEdge->isa('Lingua::YaTeA::Node')
267 0 0 0 $node != $added_node_set->getNode(0)->searchRoot and not exists $integrated{$node->getID}
286 0 0 0 &blessed($hook_node) and $hook_node->isa('Lingua::YaTeA::Node')
314 0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::RootNode')
318 0 0 0 &blessed($pivot_node) and $pivot_node->isa('Lingua::YaTeA::Node')
329 0 0 0 defined $left_most and defined $right_most
425 0 9 97 &blessed(scalar $node->getLeftEdge) and $node->getLeftEdge->isa('Lingua::YaTeA::TermLeaf')
9 65 32 &blessed(scalar $node->getLeftEdge) and $node->getLeftEdge->isa('Lingua::YaTeA::TermLeaf') and $node->getLeftEdge->getIndex == $pivot
435 0 18 56 &blessed(scalar $node->getRightEdge) and $node->getRightEdge->isa('Lingua::YaTeA::TermLeaf')
18 27 29 &blessed(scalar $node->getRightEdge) and $node->getRightEdge->isa('Lingua::YaTeA::TermLeaf') and $node->getRightEdge->getIndex == $pivot
572 0 0 0 &blessed($node) and $node->isa('Lingua::YaTeA::RootNode')
591 0 0 0 &blessed($root_head) and $root_head->isa('Lingua::YaTeA::TermLeaf')
0 0 0 defined $root_head and (&blessed($root_head) and $root_head->isa('Lingua::YaTeA::TermLeaf'))

or 3 conditions

line l !l&&r !l&&!r condition
84 280 46 384 not defined $this->getRoot && exists $nodes_id{$this->getRoot->getID} or &blessed(scalar $this->getRoot) and not $this->getRoot->isa('Lingua::YaTeA::RootNode')