Branch Coverage

blib/lib/PPIx/XPath.pm
Criterion Covered Total %
branch 22 38 57.8


line true false branch
17 0 1 unless defined $source
20 0 1 if (&blessed($source) and $source->isa('PPI::Node')) { }
1 0 elsif (&reftype($source) eq 'SCALAR' or not ref $source and -f $source) { }
124 0 63 if (UNIVERSAL::isa($b, 'PPIx::XPath::Attr')) { }
0 63 elsif (UNIVERSAL::isa($b, 'PPI::Document')) { }
142 0 63 if $a == $b
143 15 48 if $a->_xpath_in($b)
144 6 42 if $b->_xpath_in($a)
151 0 42 unless $a_pile[-1] == $b_pile[-1]
166 16 3 if $a_prev == $b_next
168 3 0 if $a_next == $b_prev
170 0 0 if $b_prev == $a_next
172 0 0 if $b_next == $a_prev
179 21 229 if $self == $ancestor
359 4 36 unless $meth
362 4 32 unless eval { do { $value = &$meth($parent); 1 } }
364 4 28 unless defined $value
382 0 0 if (UNIVERSAL::isa($b, 'PPIx::XPath::Attr')) { }
0 0 elsif (UNIVERSAL::isa($b, 'PPI::Document')) { }