Branch Coverage

blib/lib/XML/DOM2/Parser.pm
Criterion Covered Total %
branch 16 30 53.3


line true false branch
31 0 2 unless ($opts{'document'})
86 2 0 unless ($parent or $$self{'inline'})
90 20 0 if ($$node{'LocalName'})
91 18 2 if ($parent) { }
93 0 18 if $$node{'Prefix'}
94 0 18 if $$node{'Prefix'} and not defined $ns
110 0 0 if ($$attribute{'Name'} eq 'xmlns') { }
0 0 elsif ($$attribute{'Prefix'} eq 'xmlns') { }
132 0 6 if ($$attribute{'Prefix'}) { }
134 0 0 unless ($ns)
144 18 2 if $$self{'parent'}
175 0 38 if ref $text eq 'CODE'
178 38 0 unless defined $$self{'-text'}
190 38 2 if ($$self{'text'})
192 12 26 if ($text =~ /\S/)