Branch Coverage

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

line%coveragebranch
2350TFunless $self->make_groups
3150TFunless $self->recurse_before($self, 'clean_axis_and_abbreviations')
32100TFunless $self->recurse_before($self, 'claim_groups')
3350TFunless $self->recurse_after($self, 'build_steps')
3450TFunless $self->recurse_after($self, 'build_paths')
4150TFunless $self->binops(['|'], 'UnionExpr')
4250TFunless $self->recurse_before($self, 'unary_minus')
4350TFunless $self->binops(['*', 'div', 'mod'], 'MultiplicativeExpr')
4450TFunless $self->binops(['+', '-'], 'AdditiveExpr')
4550TFunless $self->binops(['<', '<=', '>', '>='], 'RelationalExpr')
4650TFunless $self->binops(['=', '!='], 'EqualityExpr')
4750TFunless $self->binops(['and'], 'AndExpr')
4850TFunless $self->binops(['or'], 'OrExpr')
122100TFif ($token->match('Symbol', '(')) { }
100TFelsif ($token->match('Symbol', '[')) { }
100TFelsif ($token->match('Symbol', ')')) { }
100TFelsif ($token->match('Symbol', ']')) { }
14450TFif ($$parent{'type'} ne 'Group()')
15350TFif ($$parent{'type'} ne 'Predicate')
172100TFunless $self->$method($root)
17650TFunless $self->recurse_before($token, $method)
18750TFunless $self->recurse_after($token, $method)
19050TFunless $self->$method($root)
221100TFif ($token->match('NodeType')) { }
100TFelsif ($token->match('FunctionName')) { }
50TFelsif ($token->match('Group()')) { }
22750TFif (not $next->match('Group()'))
234100TFif ($$token{'content'} eq 'processing-instruction') { }
236100TFif ($childs == 0) { }
100TFelsif ($childs == 1) { }
242100TFif ($$next{'tokens'}[0]{'type'} eq 'Literal') { }
256100TFif ($childs > 0)
27150TFif (not $next->match('Group()'))
28050TFunless $self->claim_groups($next)
28750TFunless $self->make_arg_list($token, $next)
317100TFunless scalar @{$$arg_group{'tokens'};}
325100TFif ($token->match('Symbol', ',')) { }
356100TFif ($token->match('AxisName')) { }
100TFelsif ($token->match('Symbol', '@')) { }
100TFelsif ($token->match('Operator', '//')) { }
100TFelsif ($token->match('Symbol', '.')) { }
100TFelsif ($token->match('Symbol', '..')) { }
36050TFunless ($next->match('Symbol', '::'))
447100TFif ($token->match('AxisSpecifier')) { }
100TFelsif ($token->match('NodeTypeTest') or $token->match('NameTest')) { }
50TFelsif ($token->match('Predicate')) { }
45150TFunless (defined $next)
45750TFunless ($next->match('NodeTypeTest') or $next->match('NameTest'))
47350TFif ($token->match('Predicate')) { }
496100TFif ($token->match('Predicate')) { }
530100TFif ($token->match('Step')) { }
100TFelsif ($token->match('Operator', '/')) { }
53750TFunless $self->slurp_path($path, $tokens)
55050TFunless $self->slurp_path($path, $tokens)
55250TFunless (scalar @{$$path{'tokens'};})
575100TFif (defined $t1) { }
576100TFif ($t1->match('Operator', '/')) { }
58050TFif (defined $t2) { }
58150TFif ($t2->match('Step')) { }
613100TFif ($token->match('Operator', $op))
61550TFif (not scalar @{$$root{'tokens'};})
62050TFif (not scalar @{$tokens;})
650100TFif defined $prev
677100TFif ($token->match('Operator', '-'))
679100TFif (defined $$token{'next'} and defined $$token{'prev'} and $$token{'prev'}->is_expression) { }