Condition Coverage

blib/lib/XML/XPathEngine/Step.pm
Criterion Covered Total %
condition 18 52 34.6


and 3 conditions

line !l l&&!r l&&r condition
131 0 272 3 $from and not $from->isa('XML::XPathEngine::NodeSet')
292 5 0 10 $elt and $elt->can('getNextSibling')
387 0 0 112 $node->isElementNode and defined $node->getName
392 0 0 0 $test == 8 and not $$self{'literal'}
400 0 0 0 $name eq $node->getLocalName and _match_ns($self, $node)
477 0 0 0 $name eq $node->getLocalName and _match_ns($self, $node)

or 2 conditions

line l !l condition
288 10 0 $elt->getParentNode || (return)
346 6 0 $elt->getParentNode || (return)

or 3 conditions

line l !l&&r !l&&!r condition
50 0 0 0 $test == 1 or $test == 4
88 0 0 0 $test == 1 or $test == 4
279 5 0 0 $context->getNextSibling || _next_sibling_of_an_ancestor_of($context)
282 20 5 5 $elt->getFirstChild || $elt->getNextSibling || _next_sibling_of_an_ancestor_of($elt)
337 3 0 0 $context->getPreviousSibling || _previous_sibling_of_an_ancestor_of($context)
340 12 3 3 $elt->getLastChild || $elt->getPreviousSibling || _previous_sibling_of_an_ancestor_of($elt)
398 0 0 501 $$self{'literal'} =~ /:/ or $$self{'pp'}{'strict_namespaces'}
442 0 0 0 $$pp{'uses_namespaces'} or $$pp{'strict_namespaces'}
444 0 0 0 $match_ns or $$pp{'strict_namespaces'}
468 76 0 331 $test == 5 or $test == 9