Branch Coverage

blib/lib/Tree/XPathEngine/Step.pm
Criterion Covered Total %
branch 47 68 69.1


line true false branch
38 0 0 if ($test == 4) { }
0 0 elsif ($test == 5) { }
49 0 0 unless defined $_
103 0 2108 if ($@)
123 22 40 if node_test($self, $parent)
126 17 0 unless $parent
133 16 74 unless $context
135 19 55 if (node_test($self, $context))
147 822 1221 if ($self->test_attribute($attrib))
158 482 364 if (node_test($self, $node))
172 27 101 if (node_test($self, $node))
187 1348 0 if (node_test($self, $node))
201 1 2 unless $parent
216 3 0 if (node_test($self, $context))
227 0 12 unless $parent
228 12 0 if (node_test($self, $parent))
242 1 2 unless $parent
257 6 0 if (node_test($self, $context))
267 210 0 if (node_test($self, $context))
280 1558 1131 if $test == 5
282 288 843 if ($test == 1)
283 288 0 if $node->xpath_is_element_node and defined $node->xpath_get_name
288 843 0 if ($test == 0) { }
0 0 elsif ($test == 4) { }
289 15 828 unless $node->xpath_is_element_node
290 283 545 if $node->xpath_get_name eq $$self{'literal'}
293 0 0 if $node->xpath_is_text_node
307 822 1221 if ($test == 3 or $test == 5 or $test == 2 and $node->xpath_get_name eq $$self{'literal'}) { }
327 0 1374 unless (ref $nodeset)
340 587 124 if ($result->isa('Tree::XPathEngine::Boolean')) { }
93 31 elsif ($result->isa('Tree::XPathEngine::Number')) { }
341 159 428 if ($result->value)
346 22 71 if ($result->value == $i)
351 17 14 if ($result->xpath_to_boolean->value)