Branch Coverage

blib/lib/XML/Validator/Schema/Parser.pm
Criterion Covered Total %
branch 0 92 0.0


line true false branch
21 0 0 @_ == 1 ? :
33 0 0 @$node_stack ? :
37 0 0 if @$node_stack == 0 and $name ne 'schema'
41 0 0 if ($name eq 'schema') { }
0 0 elsif ($name eq 'element') { }
0 0 elsif ($name eq 'attribute') { }
0 0 elsif ($name eq 'simpleContent') { }
0 0 elsif ($name eq 'extension') { }
0 0 elsif ($name eq 'simpleType') { }
0 0 elsif ($name eq 'restriction') { }
0 0 elsif ($name eq 'union') { }
0 0 elsif ($name eq 'whiteSpace' or $name eq 'pattern' or $name eq 'enumeration' or $name eq 'length' or $name eq 'minLength' or $name eq 'maxLength' or $name eq 'minInclusive' or $name eq 'minExclusive' or $name eq 'maxInclusive' or $name eq 'maxExclusive' or $name eq 'totalDigits' or $name eq 'fractionDigits') { }
0 0 elsif ($name eq 'complexType') { }
0 0 elsif ($name eq 'sequence' or $name eq 'choice' or $name eq 'all') { }
0 0 elsif ($name eq 'annotation' or $name eq 'documentation') { }
50 0 0 if $a and $a ne 'unqualified'
62 0 0 if (_attr($data, 'ref')) { }
77 0 0 if not $name and $mother->is_root
87 0 0 unless $$mother{'is_complex'} or $mother->isa('XML::Validator::Schema::ComplexTypeNode')
95 0 0 unless $$mother{'simple_content'}
100 0 0 unless $base
108 0 0 if ($name) { }
109 0 0 unless $mother->is_root
119 0 0 if $mother->is_root
122 0 0 if $$mother{'is_complex'}
135 0 0 unless $mother->isa('XML::Validator::Schema::SimpleTypeNode')
141 0 0 unless $mother->isa('XML::Validator::Schema::SimpleTypeNode')
159 0 0 if (_attr($data, 'memberTypes'))
194 0 0 unless $mother->isa('XML::Validator::Schema::SimpleTypeNode')
201 0 0 if ($name) { }
202 0 0 unless $mother->is_root
213 0 0 if $mother->is_root
231 0 0 if $name eq 'all'
251 0 0 if ($name eq 'schema')
252 0 0 unless @$node_stack == 1
262 0 0 if ($name eq 'element')
269 0 0 if ($name eq 'sequence' or $name eq 'choice' or $name eq 'all')
275 0 0 if ($name eq 'complexType' and $node->isa('XML::Validator::Schema::ComplexTypeNode'))
285 0 0 if ($name eq 'union')
287 0 0 if ($$node{'is_union'}) { }
288 0 0 if (not defined $$node{'next_instance'}) { }
291 0 0 if ($$node{'next_instance'} == 0)
303 0 0 if ($name eq 'simpleType' and $node->isa('XML::Validator::Schema::SimpleTypeNode'))
311 0 0 unless $$node{'name'}
318 0 0 if ($name eq 'attribute' and $node->isa('XML::Validator::Schema::AttributeNode'))
324 0 0 if ($name and $mother->is_root) { }