Branch Coverage

blib/lib/XML/SAX/Writer/XML.pm
Criterion Covered Total %
branch 11 64 17.1


line true false branch
42 5 0 if $self->{'Consumer'}->can('finalize')
57 0 5 if ($data->{'NamespaceURI'}) { }
0 5 elsif ($data->{'Prefix'}) { }
59 0 0 if ($uri ne $data->{'NamespaceURI'})
61 0 0 $data->{'Prefix'} ? :
74 0 1 unless length $at->{'Name'}
75 0 1 if ($at->{'NamespaceURI'}) { }
0 1 elsif ($at->{'Prefix'}) { }
77 0 0 unless defined $uri
78 0 0 if (defined $uri and $uri ne $at->{'NamespaceURI'})
80 0 0 $at->{'Prefix'} ? :
91 0 0 if ($nd->{'Prefix'}) { }
119 3 2 if ($self->{'BufferElement'}) { }
141 0 2 if ($self->{'InCDATA'}) { }
213 0 0 if ($data->{'Name'} =~ /^%/) { }
0 0 elsif ($data->{'Name'} eq '[dtd]') { }
239 0 0 if ($data->{'PublicId'} and $data->{'SystemId'}) { }
0 0 elsif ($data->{'PublicId'}) { }
265 0 0 if ($data->{'PublicId'}) { }
304 0 0 if not exists $data->{'Mode'} and exists $data->{'ValueDefault'}
309 0 0 if $data->{'Value'}
342 0 0 if ($data->{'PublicId'}) { }
378 0 0 if ($data->{'PublicId'}) { }
0 0 elsif ($data->{'SystemId'}) { }
397 0 0 if ($self->{'BufferDTD'}) { }
444 0 0 if ($data->{'Name'} eq '[dtd]') { }
0 0 elsif ($data->{'Name'} =~ /^%/) { }
483 0 0 if ($data->{'Version'})
485 0 0 if ($data->{'Encoding'})
488 0 0 if ($data->{'Standalone'})
510 2 5 if ($self->{'BufferElement'})
525 0 0 if ($self->{'BufferDTD'})