Branch Coverage

lib/XML/DOM/Lite/Node.pm
Criterion Covered Total %
branch 38 64 59.3


line true false branch
11 121 0 unless (UNIVERSAL::isa($proto->{'childNodes'}, 'XML::DOM::Lite::NodeList'))
17 81 40 unless defined $proto->{'attributes'}
19 0 121 if defined $proto->{'parentNode'}
20 34 87 if defined $proto->{'ownerDocument'}
27 0 134 if @_
33 78 44 if (@_) { }
41 0 0 if $_[1]
46 0 153 if @_
51 0 26 if @_
56 0 24 if @_
62 3 75 if ($node->{'parentNode'})
65 1 77 if ($node->nodeType == 11) { }
79 3 0 if ($self->parentNode)
81 1 2 if $index == 0
88 7 0 if ($self->parentNode)
90 3 4 if $index == $self->parentNode->childNodes->length - 1
97 4 0 if ($node->parentNode == $self) { }
107 0 1 unless scalar @_ == 3
108 0 1 if ($node->parentNode)
111 0 1 if ($node->nodeType == 11)
119 1 0 if (defined $index) { }
120 0 1 if ($index <= 0) { }
132 0 0 unless scalar @_ == 3
138 0 18 if @_
143 0 23 if @_
151 27 36 if $self->{'attributes'}[$x]{'nodeName'} eq $attname
159 0 0 if ($self->{'attributes'}[$x]{'nodeName'} eq $attname)
184 76 8 if @_
193 8 9 if ($n->nodeType == 1)
194 2 6 if ($n->tagName eq $tag_name)
214 0 0 if ($deep)
216 0 0 if defined $copy->{'documentElement'}