Condition Coverage

blib/lib/XML/XSH2/XPathToXML.pm
Criterion Covered Total %
condition 8 40 20.0


and 3 conditions

line !l l&&!r l&&r condition
192 5 0 0 $context_node ne '' and not ref $context_node
211 0 0 0 not defined $uri and $self->{'XPathContext'}
0 0 0 not defined $uri and $self->{'XPathContext'} and UNIVERSAL::can($self->{'XPathContext'}, 'lookupNs')
215 0 0 0 not defined $uri and ref $self->{'namespaces'}
224 0 0 0 $real_prefix eq '' and not defined $node->lookupNamespaceURI(undef)
276 0 0 0 defined $uri and $uri ne ''
334 0 11 0 $self->{'maxAutoSiblings'} and @auto > $self->{'maxAutoSiblings'}
341 11 0 0 defined $uri and $uri ne ''
373 8 0 0 ref $value and UNIVERSAL::isa($value, 'XML::LibXML::Node')
414 0 0 0 $parent and not defined $self->{'tree'}{$parent}

or 2 conditions

line l !l condition
66 0 8 $self->{'version'} ||= '1.0'
67 0 8 $self->{'debug'} ||= 0

or 3 conditions

line l !l&&r !l&&!r condition
98 8 0 0 $self->{'node'} ||= $self->{'doc'}
200 0 5 0 $context_node ||= $self->{'node'}