Branch Coverage

blib/lib/XML/Validator/Schema/ElementNode.pm
Criterion Covered Total %
branch 7 66 10.6


line true false branch
26 0 5 unless $name
31 0 5 if ($type_name)
37 5 0 unless defined $min
38 0 5 unless $min =~ /^\d+$/
43 5 0 unless defined $max
44 0 5 unless $max =~ /^\d+$/ or $max eq 'unbounded'
56 0 14 if ($$self{'is_all'} and $d->isa('XML::Validator::Schema::ElementNode'))
57 0 0 unless $$d{'min'} eq '0' or $$d{'min'} eq '1'
59 0 0 unless $$d{'max'} eq '0' or $$d{'max'} eq '1'
71 0 0 if ($$self{'type'}) { }
0 0 elsif ($$self{'is_complex'} and $contents =~ /\S/) { }
82 0 0 if ($$self{'type'} eq 'union') { }
84 0 0 if (not defined $$self{'members'}) { }
87 0 0 if (@{$$self{'members'};} == 0)
95 0 0 unless (my $x = ref $m)
99 0 0 if $ok
103 0 0 unless ($ok)
113 0 0 unless $ok
130 0 0 unless $daughter
137 0 0 if $$self{'model'}
141 0 0 if ($$daughter{'unresolved_type'})
147 0 0 if ($$daughter{'unresolved_ref'})
161 0 0 unless $$self{'attr'}
163 0 0 if $$attr{'required'}
174 0 0 if $$attr{'NamespaceURI'} eq 'http://www.w3.org/2001/XMLSchema-instance'
179 0 0 if $$attr{'NamespaceURI'} eq 'http://www.w3.org/2000/xmlns/'
183 0 0 unless $obj
188 0 0 if ($$obj{'unresolved_type'})
193 0 0 if ($$obj{'type'})
195 0 0 unless $ok
202 0 0 unless $saw{$name}
211 0 0 if ($self->daughters and ($self->daughters)[0]->isa('XML::Validator::Schema::ModelNode'))
219 0 0 if $_[0]{'memory'}