Branch Coverage

File:lib/XML/Parser/Lite/Tree/XPath/Tokener.pm
Coverage:66.3%

line%coveragebranch
2450TFif $$self{'error'}
2950TFif $$self{'error'}
3350TFif $$self{'error'}
48100TFif ($$self{'input'} =~ /^(\(|\)|\[|\]|\.\.|\.|\@|,|::)/)
59100TFif ($$self{'input'} =~ /^(\*)/)
6650TFif ($$self{'input'} =~ /^($$self{'rx'}{'NCName'}):\*/)
77100TFif ($$self{'input'} =~ /^((($$self{'rx'}{'NCName'})\\x3a)?($$self{'rx'}{'NCName'}))/)
7950TFif defined $3
8050TFif defined $3
9150TFif ($$self{'input'} =~ /^(comment|text|processing-instruction|node)/)
102100TFif ($$self{'input'} =~ m[^(and|or|mod|div|//|/|\||\+|-|=|!=|<=|<|>=|>)])
121100TFif ($$self{'input'} =~ /^(('[^']*')|("[^"]*"))/)
13550TFif ($$self{'input'} =~ /^($$self{'rx'}{'Number'})/)
1460TFif ($$self{'input'} =~ /^\$($$self{'rx'}{'QName'})/)
16350TFif defined $content
190100TFif defined $prev
208100TFif (defined $$token{'prev'})
211100TFunless ($p->match('Symbol', '@') or $p->match('Symbol', '::') or $p->match('Symbol', '(') or $p->match('Symbol', '[') or $p->match('Symbol', ',') or $p->match('Operator'))
218100TFif ($$token{'type'} eq 'Star') { }
222100TFif ($$token{'type'} eq 'NCName')
22450TFif ($self->is_OperatorName($$token{'content'})) { }
244100TFif ($token->match('NCName'))
246100TFif (defined $$token{'next'})
248100TFif ($$token{'next'}->match('Symbol', '('))
250100TFif ($self->is_NodeType($$token{'content'})) { }
267100TFif ($token->match('NCName'))
269100TFif (defined $$token{'next'})
271100TFif ($$token{'next'}->match('Symbol', '::'))
27350TFif ($self->is_AxisName($$token{'content'})) { }
296100TFif ($token->match('Star'))
300100TFif ($token->match('NCName'))
30150TFif (defined $$token{'next'} and $$token{'next'}->match('NameTestPostfix')) { }
30750TFif (defined $$token{'next'} and $$token{'next'}->match('QNameSep') and defined $$token{'next'}{'next'} and $$token{'next'}{'next'}->match('NCName')) { }
34250TFif ($token->match('NameTestBase'))
35050TFif ($token->match('QNamePre'))
37150TFif $content =~ /^(and|or|mod|div)$/
378100TFif $content =~ /^(comment|text|processing-instruction|node)$/
38550TFif $content =~ /^(ancestor|ancestor-or-self|attribute|child|descendant|descendant-or-self| following|following-sibling|namespace|parent|preceding|preceding-sibling|self)$/x
4020TFunless $$self{'type'} eq $type
4040TFif defined $content and $$self{'content'} ne $content
4130TFif $$self{'absolute'}
4140TFif defined $$self{'content'}
4150TFif defined $$self{'axis'}