blib/lib/PPIx/XPath.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 5 | 27 | 18.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
18 | 1 | 0 | 0 | blessed $source and $source->isa('PPI::Node') |
0 | 0 | 0 | not ref $source and -f $source |
line | l | !l | condition |
---|---|---|---|
112 | 0 | 0 | $a->_xpath_elt_cmp($$b{'parent'}) || -1 |
150 | 19 | 23 | $a_prev->sprevious_sibling || (return -1) |
152 | 3 | 0 | $a_next->snext_sibling || (return 1) |
154 | 0 | 0 | $b_prev->sprevious_sibling || (return 1) |
156 | 0 | 0 | $b_next->snext_sibling || (return -1) |
379 | 0 | 0 | $$a{'parent'}->_xpath_elt_cmp($b) || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
18 | 1 | 0 | 0 | reftype $source eq 'SCALAR' or not ref $source and -f $source |
26 | 0 | 0 | 0 | ref $source || $source |
369 | 0 | 0 | 0 | $$a{'parent'}->_xpath_elt_cmp($$b{'parent'}) || $$a{'name'} cmp $$b{'name'} |