Branch Coverage

lib/XML/DOM/Lite/Node.pm
Criterion Covered Total %
branch 34 58 58.6


line true false branch
9 121 0 unless (UNIVERSAL::isa($$proto{'childNodes'}, 'XML::DOM::Lite::NodeList'))
14 81 40 unless defined $$proto{'attributes'}
22 0 137 if @_
28 1 40 if (@_) { }
36 0 0 if $_[1]
40 0 153 if @_
45 0 26 if @_
50 0 24 if @_
56 3 75 if ($$node{'parentNode'})
59 77 1 if (not $node->nodeType == 11) { }
73 3 0 if ($self->parentNode)
75 1 2 if $index == 0
82 7 0 if ($self->parentNode)
84 0 7 if $index == @{$self->childNodes->length;} - 1
91 4 0 if ($node->parentNode == $self) { }
101 0 1 unless scalar @_ == 3
102 0 1 if ($node->parentNode)
105 0 1 if ($node->nodeType == 11)
113 1 0 if (defined $index) { }
114 0 1 if ($index <= 0) { }
126 0 0 unless scalar @_ == 3
132 0 18 if @_
137 0 23 if @_
144 27 36 if $$self{'attributes'}[$x]{'nodeName'} eq $attname
153 0 0 if ($$self{'attributes'}[$x]{'nodeName'} eq $attname)
178 76 8 if @_
187 8 9 if ($n->nodeType == 1)
188 2 6 if ($n->tagName eq $tag_name)
211 0 0 if ($deep)