Condition Coverage

lib/HTML/Object/XPath/Step.pm
Criterion Covered Total %
condition 22 54 40.7


and 3 conditions

line !l l&&!r l&&r condition
398 2 366 3 $from and not $from->isa("HTML::Object::XPath::NodeSet")
532 70 0 146 $node->isElementNode and defined $node->getName
536 70 0 0 $test == 8 and not $self->{'literal'}
547 0 0 0 $name eq $node->getLocalName and $self->_match_ns($node)
600 0 0 0 $name eq $node->getLocalName and $self->_match_ns($node)
699 5 0 10 $elt and $elt->can("getNextSibling")

or 2 conditions

line l !l condition
638 1740 0 $HTML::Object::XPath::Step::DEBUG // 0
694 10 0 $elt->getParentNode || (return)
708 6 0 $elt->getParentNode || (return)

or 3 conditions

line l !l&&r !l&&!r condition
75 0 0 0 $test == 1 or $test == 4
122 0 0 0 $test == 1 or $test == 4
296 5 0 0 $context->getNextSibling || _next_sibling_of_an_ancestor_of($context)
303 20 5 5 $elt->getFirstChild || $elt->getNextSibling || _next_sibling_of_an_ancestor_of($elt)
357 3 0 0 $context->getPreviousSibling || _previous_sibling_of_an_ancestor_of($context)
364 12 3 3 $elt->getLastChild || $elt->getPreviousSibling || _previous_sibling_of_an_ancestor_of($elt)
544 0 0 844 $self->{'literal'} =~ /:/ or $self->{'pp'}{'strict_namespaces'}
589 76 0 363 $test == 5 or $test == 9
648 0 0 0 $pp->{'uses_namespaces'} or $pp->{'strict_namespaces'}
651 0 0 0 $match_ns or $pp->{'strict_namespaces'}