Branch Coverage

blib/lib/XML/SAX/Writer/XML.pm
Criterion Covered Total %
branch 8 64 12.5


line true false branch
39 4 0 if $$self{'Consumer'}->can('finalize')
55 0 4 if ($$data{'NamespaceURI'}) { }
0 4 elsif ($$data{'Prefix'}) { }
57 0 0 if ($uri ne $$data{'NamespaceURI'})
59 0 0 $$data{'Prefix'} ? :
72 0 0 unless length $$at{'Name'}
73 0 0 if ($$at{'NamespaceURI'}) { }
0 0 elsif ($$at{'Prefix'}) { }
75 0 0 unless defined $uri
76 0 0 if (defined $uri and $uri ne $$at{'NamespaceURI'})
78 0 0 $$at{'Prefix'} ? :
89 0 0 if ($$nd{'Prefix'}) { }
117 2 2 if ($$self{'BufferElement'}) { }
139 0 2 if ($$self{'InCDATA'}) { }
211 0 0 if ($$data{'Name'} =~ /^%/) { }
0 0 elsif ($$data{'Name'} eq '[dtd]') { }
237 0 0 if ($$data{'PublicId'} and $$data{'SystemId'}) { }
0 0 elsif ($$data{'PublicId'}) { }
263 0 0 if ($$data{'PublicId'}) { }
301 0 0 if not exists $$data{'Mode'} and exists $$data{'ValueDefault'}
307 0 0 if $$data{'Value'}
340 0 0 if ($$data{'PublicId'}) { }
376 0 0 if ($$data{'PublicId'}) { }
0 0 elsif ($$data{'SystemId'}) { }
395 0 0 if ($$self{'BufferDTD'}) { }
442 0 0 if ($$data{'Name'} eq '[dtd]') { }
0 0 elsif ($$data{'Name'} =~ /^%/) { }
481 0 0 if ($$data{'Version'})
483 0 0 if ($$data{'Encoding'})
486 0 0 if ($$data{'Standalone'})
508 2 4 if ($$self{'BufferElement'})
523 0 0 if ($$self{'BufferDTD'})