Branch Coverage

blib/lib/XML/TinyXML.pm
Criterion Covered Total %
branch 30 70 42.8


line true false branch
210 0 17 if $constname eq 'constant'
212 0 17 if ($error)
268 0 12 if $params{'encoding'}
269 0 12 if $params{'multipleRootNodes'}
270 0 12 if defined $params{'ignoreBlanks'}
271 0 12 if defined $params{'ignoreWhiteSpaces'}
272 1 11 if ($root)
273 0 1 if (UNIVERSAL::isa($root, 'XML::TinyXML::Node')) { }
0 1 elsif (UNIVERSAL::isa($root, 'XmlNodePtr')) { }
1 0 elsif (ref $root eq 'HASH') { }
0 0 elsif (defined $root and !ref($root) || ref $root eq 'SCALAR') { }
290 0 0 $self->loadFile($file) == $self->XML_NOERR ? :
310 0 0 unless $node and UNIVERSAL::isa('XML::TinyXML::Node', $node)
326 0 0 unless $node and UNIVERSAL::isa('XML::TinyXML::Node', $node)
341 4 1 unless defined $val
344 0 5 if $attrs and ref $attrs ne 'HASH'
349 0 5 unless $node
366 0 0 unless ref $node and UNIVERSAL::isa('XML::TinyXML::Node', $node)
369 0 0 if $attrs and ref $attrs ne 'HASH'
372 0 0 unless defined $val
377 0 0 unless $child
416 1 0 unless $root
420 0 1 if (ref $root and UNIVERSAL::isa('XML::TinyXML::Node', $root)) { }
425 0 1 $self->allowMultipleRootNodes ? :
496 1 2 if (UNIVERSAL::isa($node, 'XML::TinyXML::Node')) { }
1 1 elsif (UNIVERSAL::isa($node, 'XmlNodePtr')) { }
503 1 0 if $node
595 142 1 wantarray ? :
608 0 0 if ($node) { }
614 0 0 if $res
623 0 0 $value ? :
666 182 1 defined $val ? :
724 2 0 defined $val ? :
772 2 0 defined $val ? :
784 11 0 if $$self{'_ctx'}