Condition Coverage

lib/XML/Parser/Lite/Tree/XPath/Token.pm
Criterion Covered Total %
condition 37 48 77.0


and 3 conditions

line !l l&&!r l&&r condition
19 2887 1499 2985 defined $content and $$self{'content'} ne $content
124 24 396 188 $$tag{'type'} eq 'element' and $$tag{'name'} eq $$self{'content'}
128 584 12 12 $$tag{'type'} eq 'attribute' and $$tag{'name'} eq $$self{'content'}
208 0 280 0 defined $handler and defined $$handler[0]
398 0 0 0 $$a1{'value'} && $$a2{'value'}
669 12 8 12 $$node{'type'} eq 'element' and length $$node{'uid'}

or 3 conditions

line l !l&&r !l&&!r condition
58 106 14 183 $$self{'type'} eq 'EqualityExpr' or $$self{'type'} eq 'RelationalExpr'
11 0 34 $$self{'type'} eq 'OrExpr' or $$self{'type'} eq 'AndExpr'
98 0 221 89 $step->match('AxisSpecifier') or $step->match('NameTest')
221 31 58 $step->match('AxisSpecifier') or $step->match('NameTest') or $step->match('Predicate')
252 58 0 $step->match('AxisSpecifier') or $step->match('NameTest') or $step->match('Predicate') or $step->match('NodeTypeTest')
397 2 1 8 $$a1{'value'} || $$a2{'value'}
614 0 4 0 $$self{'context'}{'type'} eq 'node' or $$self{'context'}{'type'} eq 'nodeset'
684 20 4 8 $$node{'type'} eq 'element' or $$node{'type'} eq 'root'
811 0 2 2 $$args[0]{'type'} eq 'node' or $$args[0]{'type'} eq 'nodeset'
917 19 1 12 $$node{'type'} eq 'element' or $$node{'type'} eq 'root'