Branch Coverage

lib/XML/Parser/Lite/Tree/XPath/Axis.pm
Criterion Covered Total %
branch 60 68 88.2


line true false branch
9 255 25 if $XML::Parser::Lite::Tree::XPath::Axis::axis
21 119 161 defined $$token{'axis'} ? :
23 165 115 if $$self{'axis'} eq 'child'
24 6 109 if $$self{'axis'} eq 'descendant'
25 60 49 if $$self{'axis'} eq 'descendant-or-self'
26 2 47 if $$self{'axis'} eq 'parent'
27 4 43 if $$self{'axis'} eq 'ancestor'
28 2 41 if $$self{'axis'} eq 'ancestor-or-self'
29 2 39 if $$self{'axis'} eq 'following-sibling'
30 2 37 if $$self{'axis'} eq 'preceding-sibling'
31 4 33 if $$self{'axis'} eq 'following'
32 4 29 if $$self{'axis'} eq 'preceding'
33 26 3 if $$self{'axis'} eq 'attribute'
35 2 1 if $$self{'axis'} eq 'self'
80 682 8 if $me
84 620 2 if ($$child{'type'} eq 'element')
101 26 0 if ($$input{'type'} eq 'nodeset')
105 0 26 if ($$input{'type'} eq 'node')
109 0 26 unless defined $nodes
133 6 0 if defined $$tag{'parent'}
160 32 4 if $me
162 30 6 if (defined $$tag{'parent'})
178 4 0 if (defined $$tag{'parent'})
182 5 8 if $found
183 4 9 if $$child{'order'} == $$tag{'order'}
197 4 0 if (defined $$tag{'parent'})
201 4 9 if $$child{'order'} == $$tag{'order'}
202 5 8 unless $found
215 4 0 if $$tag{'order'} < $min_order
230 20 34 if $$tag{'order'} > $min
234 50 4 if ($$child{'order'} != $min and $$child{'type'} eq 'element')
251 4 0 if ($$tag{'order'} > $max_order)
269 22 27 if $$tag{'order'} < $max and not $$parents{$$tag{'order'}}
273 45 4 if ($$child{'order'} != $max and $$child{'type'} eq 'element')