blib/lib/PPIx/XPath.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 5 | 27 | 18.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
20 | 1 | 0 | 0 | &blessed($source) and $source->isa('PPI::Node') |
0 | 0 | 0 | not ref $source and -f $source |
line | l | !l | condition |
---|---|---|---|
127 | 0 | 0 | $a->_xpath_elt_cmp($b->{'parent'}) || -1 |
165 | 19 | 23 | $a_prev->sprevious_sibling || (return -1) |
167 | 3 | 0 | $a_next->snext_sibling || (return 1) |
169 | 0 | 0 | $b_prev->sprevious_sibling || (return 1) |
171 | 0 | 0 | $b_next->snext_sibling || (return -1) |
394 | 0 | 0 | $a->{'parent'}->_xpath_elt_cmp($b) || 1 |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
20 | 1 | 0 | 0 | &reftype($source) eq 'SCALAR' or not ref $source and -f $source |
28 | 0 | 0 | 0 | ref $source || $source |
385 | 0 | 0 | 0 | $a->{'parent'}->_xpath_elt_cmp($b->{'parent'}) || $a->{'name'} cmp $b->{'name'} |