Branch Coverage

blib/lib/XML/DOM2.pm
Criterion Covered Total %
branch 18 54 33.3


line true false branch
80 2 2 if ($o{'file'} or $o{'fh'} or $o{'data'})
102 0 2 if $p{'file'}
103 2 0 if $p{'data'}
104 0 2 if $p{'fh'}
127 1 0 unless ($$self{'nocredits'})
140 1 0 unless $$self{'inline'}
144 0 1 if $self->namespace
188 0 0 if (UNIVERSAL::isa($data, 'HASH')) { }
0 0 elsif (UNIVERSAL::isa($data, 'ARRAY')) { }
205 0 0 if ($name eq '+') { }
0 0 elsif ($name =~ /^_(.+)$/) { }
211 0 0 $isa ? :
225 0 0 $isa ? :
235 0 0 if (defined $scalar)
313 0 1 unless $type
316 0 1 if ($type->publicId) { }
318 0 0 $type->systemId ? :
326 0 0 unless defined $type
327 0 0 unless defined $id
343 0 0 if ($self->extension)
378 0 20 unless $type
379 2 18 if ($type eq '#document' or $type eq $self->_document_name) { }
0 18 elsif ($type eq '#comment') { }
0 18 elsif ($type eq '#cdata-entity') { }
380 2 0 if $type ne '#document'
398 0 23 if (defined $set)
419 0 20 if ($$self{'baseTag'})