Branch Coverage

blib/lib/XML/SAX/Writer/XML.pm
Criterion Covered Total %
branch 8 62 12.9


line true false branch
43 1 0 if $$self{'Consumer'}->can('finalize')
59 0 1 if ($$data{'NamespaceURI'}) { }
0 1 elsif ($$data{'Prefix'}) { }
61 0 0 if ($uri ne $$data{'NamespaceURI'})
63 0 0 $$data{'Prefix'} ? :
76 0 0 unless length $$at{'Name'}
77 0 0 if ($$at{'NamespaceURI'}) { }
0 0 elsif ($$at{'Prefix'}) { }
79 0 0 unless defined $uri
80 0 0 if (defined $uri and $uri ne $$at{'NamespaceURI'})
82 0 0 $$at{'Prefix'} ? :
93 0 0 if ($$nd{'Prefix'}) { }
103 0 1 unless defined $$data{'Name'}
122 0 1 if ($$self{'BufferElement'}) { }
144 0 1 if ($$self{'InCDATA'}) { }
216 0 0 if ($$data{'Name'} =~ /^%/) { }
239 0 0 if ($$data{'PublicId'} and $$data{'SystemId'}) { }
0 0 elsif ($$data{'PublicId'}) { }
265 0 0 if ($$data{'PublicId'}) { }
305 0 0 if $$data{'Value'}
337 0 0 if ($$data{'PublicId'}) { }
374 0 0 if ($$data{'PublicId'}) { }
0 0 elsif ($$data{'SystemId'}) { }
393 0 0 if ($$self{'BufferDTD'}) { }
440 0 0 if ($$data{'Name'} eq '[dtd]') { }
0 0 elsif ($$data{'Name'} =~ /^%/) { }
479 0 0 if ($$data{'Version'})
481 0 0 if ($$data{'Encoding'})
484 0 0 if ($$data{'Standalone'})
506 1 1 if ($$self{'BufferElement'})
521 0 0 if ($$self{'BufferDTD'})