Branch Coverage

blib/lib/XML/TinyXML/Node.pm
Criterion Covered Total %
branch 34 64 53.1


line true false branch
94 4 772 unless $entity
96 747 25 if (ref $entity and UNIVERSAL::isa($entity, 'XmlNodePtr')) { }
99 6 19 unless defined $value
102 0 772 unless $node
103 0 772 if (ref $parent)
105 0 0 if (UNIVERSAL::isa($parent, 'XmlNodePtr')) { }
0 0 elsif (UNIVERSAL::isa($parent, 'XML::TinyXML::Node')) { }
110 0 0 if ($pnode)
117 1 771 if ($attrs and ref $attrs eq 'HASH')
158 0 15 if $reset
162 14 8 if (not ref $$hash{$k} or ref $$hash{$k} eq 'SCALAR') { }
6 2 elsif (ref $$hash{$k} eq 'HASH') { }
2 0 elsif (ref $$hash{$k} eq 'ARRAY') { }
192 6 14 if ($child->countChildren)
195 6 14 if ($$hashref{$key}) { }
196 5 1 if (ref $$hashref{$key} eq 'ARRAY') { }
205 0 7 if ($parent and $self->value)
206 0 0 if ($$parent{$$self{'name'}}) { }
207 0 0 if (ref($$parent{$self->name} eq 'ARRAY')) { }
254 0 385 if $newname
268 0 41 if $newval
291 0 0 if $attr
305 37 0 wantarray ? :
349 0 4 unless $name
374 387 0 wantarray ? :
389 22 0 if ($child and UNIVERSAL::isa($child, 'XML::TinyXML::Node')) { }
0 0 elsif ($child and not ref $child) { }
393 0 0 if ($node)
461 0 0 wantarray ? :
492 137 24 if ($type == XML::TinyXML::XML_NODETYPE_SIMPLE()) { }
12 12 elsif ($type == XML::TinyXML::XML_NODETYPE_COMMENT()) { }
12 0 elsif ($type == XML::TinyXML::XML_NODETYPE_CDATA()) { }