| line |
true |
false |
branch |
|
40
|
0 |
14 |
unless substr($expr, 0, 1) eq '.' |
|
41
|
0 |
14 |
unless $expr =~ /$RX_TEST/g |
|
43
|
0 |
14 |
if exists $CACHE{$expr} |
|
56
|
6 |
22 |
if ($token =~ /$RX_ITEM/) { } |
|
|
1 |
21 |
elsif ($token =~ /$RX_SLCE/) { } |
|
65
|
14 |
14 |
if (substr($token, 0, 1) eq '.') { } |
|
|
1 |
13 |
elsif ($token eq '#node') { } |
|
|
0 |
13 |
elsif ($token eq '*') { } |
|
|
1 |
12 |
elsif ($token eq '#text') { } |
|
|
0 |
12 |
elsif ($token eq '#cdata') { } |
|
|
0 |
12 |
elsif ($token eq '#processing-instruction') { } |
|
|
0 |
12 |
elsif ($token eq '#comment') { } |
|
|
1 |
11 |
elsif ($token eq '@*') { } |
|
|
0 |
11 |
elsif (substr($token, 0, 1) eq '@') { } |
|
|
3 |
8 |
elsif (substr($token, 0, 1) eq '(') { } |
|
|
1 |
7 |
elsif ($token eq 'parent()') { } |
|
66
|
0 |
14 |
if $seen_flat |
|
70
|
0 |
1 |
if $seen_flat |
|
74
|
0 |
0 |
if $seen_flat |
|
78
|
0 |
1 |
if $seen_flat |
|
87
|
0 |
0 |
if $seen_flat |
|
91
|
0 |
0 |
if $seen_flat |
|
95
|
0 |
1 |
if $seen_flat |
|
100
|
0 |
0 |
if $seen_flat |
|
108
|
0 |
1 |
if $seen_flat |
|
112
|
0 |
7 |
if $seen_flat |
|
116
|
6 |
22 |
if (defined $index) { } |
|
|
1 |
42 |
elsif (defined $start and defined $end) { } |
|
134
|
6 |
29 |
if ($meth eq 'item') { } |
|
|
1 |
28 |
elsif ($meth eq 'slice') { } |
|
|
3 |
25 |
elsif ($meth eq 'filter') { } |
|
162
|
4 |
0 |
if (UNIVERSAL::can($node, 'children')) |
|
164
|
1 |
13 |
if defined $type and $child->type != $type |
|
173
|
15 |
0 |
if (UNIVERSAL::can($node, 'children')) |
|
175
|
32 |
16 |
unless $child->name eq $name |
|
196
|
0 |
14 |
unless $name |
|
197
|
14 |
0 |
if (UNIVERSAL::can($node, 'children')) |
|
205
|
0 |
624 |
if ($name eq '*' and $n->type == 1) { } |
|
|
0 |
624 |
elsif ($name eq '#processing-instruction' and $n->type == 7) { } |
|
|
53 |
571 |
elsif ($n->name eq $name) { } |
|
215
|
214 |
410 |
if (UNIVERSAL::can($n, 'children')) |
|
228
|
3 |
0 |
unless (ref $test eq 'CODE') |
|
233
|
0 |
3 |
if $@ |