Condition Coverage

blib/lib/Tree/XPathEngine.pm
Criterion Covered Total %
condition 22 32 68.7


and 3 conditions

line !l l&&!r l&&r condition
197 1309 0 9 $expected eq 'RE' and $path =~ /\G\s*($Tree::XPathEngine::REGEXP_RE $Tree::XPathEngine::REGEXP_MOD_RE?)\s*/cgsx
644 2 9 61 $$tokens[$tokpos + 1] and $$tokens[$tokpos + 1] eq '['
688 0 44 0 @steps > 1 and $steps[-1]{'axis'} eq 'self'
44 0 0 @steps > 1 and $steps[-1]{'axis'} eq 'self' and $steps[-1]{'test'} == 5
811 219 46 18 $token =~ /^($$self{'NAME'}|$Tree::XPathEngine::WILD)$/ and ($$tokens[$$self{'_tokpos'} + 1] || '') ne '('

or 2 conditions

line l !l condition
811 63 1 $$tokens[$$self{'_tokpos'} + 1] || ''

or 3 conditions

line l !l&&r !l&&!r condition
63 2 3 0 $option{'xpath_name_re'} || qr/(?:[A-Za-z_][\w.-]*)/
811 0 42 283 $token eq 'processing-instruction' or $token =~ /^\@($$self{'NAME'}|$Tree::XPathEngine::WILD)$/
42 0 283 $token eq 'processing-instruction' or $token =~ /^\@($$self{'NAME'}|$Tree::XPathEngine::WILD)$/ or $token =~ /^($$self{'NAME'}|$Tree::XPathEngine::WILD)$/ and ($$tokens[$$self{'_tokpos'} + 1] || '') ne '('
18 0 265 $token eq 'processing-instruction' or $token =~ /^\@($$self{'NAME'}|$Tree::XPathEngine::WILD)$/ or $token =~ /^($$self{'NAME'}|$Tree::XPathEngine::WILD)$/ and ($$tokens[$$self{'_tokpos'} + 1] || '') ne '(' or $token =~ /^$Tree::XPathEngine::NODE_TYPE$/
18 0 265 $token eq 'processing-instruction' or $token =~ /^\@($$self{'NAME'}|$Tree::XPathEngine::WILD)$/ or $token =~ /^($$self{'NAME'}|$Tree::XPathEngine::WILD)$/ and ($$tokens[$$self{'_tokpos'} + 1] || '') ne '(' or $token =~ /^$Tree::XPathEngine::NODE_TYPE$/ or $token =~ /^$Tree::XPathEngine::AXIS_NAME($$self{'NAME'}|$Tree::XPathEngine::WILD|$Tree::XPathEngine::NODE_TYPE)$/