Condition Coverage

lib/HTML/Object/XPath.pm
Criterion Covered Total %
condition 25 31 80.6


and 3 conditions

line !l l&&!r l&&r condition
658 45 25 6 $token =~ /^($HTML::Object::XPath::NC_WILD_RE|$HTML::Object::XPath::QNAME_RE|$HTML::Object::XPath::QN_WILD_RE)$/o and ($$tokens[$self->{'_tokpos'} + 1] || '') ne "("
757 19 13 18 $$tokens[$tokpos + 1] and $$tokens[$tokpos + 1] eq "["
841 0 16 7 @steps > 1 and $steps[-1]->axis eq "self"
16 0 7 @steps > 1 and $steps[-1]->axis eq "self" and $steps[-1]->test == $self->_class_for("Step")->TEST_NT_NODE
1092 519 0 3 $expected eq "RE" and $path =~ /\G\s*($HTML::Object::XPath::REGEXP_RE $HTML::Object::XPath::REGEXP_MOD_RE?)\s*/cgosx

or 2 conditions

line l !l condition
330 0 807 $self->debug // 0
658 30 1 $$tokens[$self->{'_tokpos'} + 1] || ''

or 3 conditions

line l !l&&r !l&&!r condition
658 0 20 76 $token eq "processing-instruction" or $token =~ /^\@($HTML::Object::XPath::NC_WILD_RE|$HTML::Object::XPath::QNAME_RE|$HTML::Object::XPath::QN_WILD_RE)$/o
20 6 70 $token eq "processing-instruction" or $token =~ /^\@($HTML::Object::XPath::NC_WILD_RE|$HTML::Object::XPath::QNAME_RE|$HTML::Object::XPath::QN_WILD_RE)$/o or $token =~ /^($HTML::Object::XPath::NC_WILD_RE|$HTML::Object::XPath::QNAME_RE|$HTML::Object::XPath::QN_WILD_RE)$/o and ($$tokens[$self->{'_tokpos'} + 1] || '') ne "("
6 0 70 $token eq "processing-instruction" or $token =~ /^\@($HTML::Object::XPath::NC_WILD_RE|$HTML::Object::XPath::QNAME_RE|$HTML::Object::XPath::QN_WILD_RE)$/o or $token =~ /^($HTML::Object::XPath::NC_WILD_RE|$HTML::Object::XPath::QNAME_RE|$HTML::Object::XPath::QN_WILD_RE)$/o and ($$tokens[$self->{'_tokpos'} + 1] || '') ne "(" or $token =~ /^$HTML::Object::XPath::NODE_TYPE_RE$/o
6 1 69 $token eq "processing-instruction" or $token =~ /^\@($HTML::Object::XPath::NC_WILD_RE|$HTML::Object::XPath::QNAME_RE|$HTML::Object::XPath::QN_WILD_RE)$/o or $token =~ /^($HTML::Object::XPath::NC_WILD_RE|$HTML::Object::XPath::QNAME_RE|$HTML::Object::XPath::QN_WILD_RE)$/o and ($$tokens[$self->{'_tokpos'} + 1] || '') ne "(" or $token =~ /^$HTML::Object::XPath::NODE_TYPE_RE$/o or $token =~ /^$HTML::Object::XPath::AXIS_NAME_RE($HTML::Object::XPath::NC_WILD_RE|$HTML::Object::XPath::QNAME_RE|$HTML::Object::XPath::QN_WILD_RE|$HTML::Object::XPath::NODE_TYPE_RE)$/o