Branch Coverage

blib/lib/XML/SAX/EventMethodMaker.pm
Criterion Covered Total %
branch 51 218 23.3


line true false branch
131 33 41 unless @_
135 0 41 if @baduns
143 22 43 $_[0] =~ /^\d+$/ ? :
149 2 39 if @versions == 1 and not @types
152 22 17 if not @versions and @types == 1
155 2 15 unless @versions
156 1 16 unless @types
197 0 45 unless eval join('', "package $where;", @code, '1')
0 0 unless $h
0 0 if $h->can('attlist_decl')
0 0 unless $h
0 0 if $h->can('attribute_decl')
0 15 unless $h
0 15 if $h->can('characters')
11 21 unless $h
13 8 if $h->can('comment')
0 0 unless $h
0 0 if $h->can('doctype_decl')
0 0 unless $h
0 0 if $h->can('element_decl')
0 0 unless $h
0 0 if $h->can('end_cdata')
0 10 unless $h
10 0 if $h->can('end_document')
0 4 unless $h
0 0 if $h->can('end_dtd')
0 20 unless $h
20 0 if $h->can('end_element')
0 8 unless $h
0 0 if $h->can('end_entity')
0 0 unless $h
0 0 if $h->can('end_prefix_mapping')
0 0 unless $h
0 0 if $h->can('entity_decl')
0 0 unless $h
0 0 if $h->can('entity_reference')
0 0 unless $h
0 0 if $h->can('error')
0 0 unless $h
0 0 if $h->can('external_entity_decl')
0 0 unless $h
0 0 if $h->can('fatal_error')
0 0 unless $h
0 0 if $h->can('ignorable_whitespace')
0 0 unless $h
0 0 if $h->can('internal_entity_decl')
0 0 unless $h
0 0 if $h->can('notation_decl')
0 0 unless $h
0 0 wantarray ? :
0 0 wantarray ? :
0 0 if $ok
0 0 unless $@ =~ /No .*routine defined/
0 0 if ($h->isa('XML::SAX::Base'))
0 0 if ($h->can('parse'))
0 0 if $$self{'TraceAdHocParts'}
0 0 unless $h
0 0 wantarray ? :
0 0 wantarray ? :
0 0 if $ok
0 0 unless $@ =~ /No .*routine defined/
0 0 if ($h->isa('XML::SAX::Base'))
0 0 if ($h->can('parse_file'))
0 0 if $$self{'TraceAdHocParts'}
0 21 unless $h
19 0 wantarray ? :
0 4 wantarray ? :
4 15 if $ok
0 15 unless $@ =~ /No .*routine defined/
15 0 if ($h->isa('XML::SAX::Base'))
19 2 if ($h->can('parse_string'))
0 17 if $$self{'TraceAdHocParts'}
0 0 unless $h
0 0 wantarray ? :
0 0 wantarray ? :
0 0 if $ok
0 0 unless $@ =~ /No .*routine defined/
0 0 if ($h->isa('XML::SAX::Base'))
0 0 if ($h->can('parse_uri'))
0 0 if $$self{'TraceAdHocParts'}
0 0 unless $h
0 0 if $h->can('processing_instruction')
0 0 unless $h
2 2 if $h->can('resolve_entity')
1 18 unless $h
1 12 if $h->can('set_document_locator')
0 3 unless $h
2 1 if $h->can('skipped_entity')
0 0 unless $h
0 0 if $h->can('start_cdata')
0 10 unless $h
10 4 if $h->can('start_document')
0 0 unless $h
0 0 if $h->can('start_dtd')
0 20 unless $h
20 0 if $h->can('start_element')
0 8 unless $h
0 0 if $h->can('start_entity')
0 0 unless $h
0 0 if $h->can('start_prefix_mapping')
0 0 unless $h
0 0 if $h->can('unparsed_entity_decl')
0 0 unless $h
0 0 if $h->can('warning')
0 0 unless $h
0 0 if $h->can('xml_decl')
0 0 unless defined $_
0 0 unless $h
0 0 if $h->can('attlist_decl')