Branch Coverage

lib/XML/Schema/Handler/Complex.pm
Criterion Covered Total %
branch 7 72 9.7


line true false branch
47 1 1 unless $self->SUPER::init($config)
54 0 5 if @data
61 1 0 if ($model) { }
90 0 6 if $XML::Schema::Handler::Complex::DEBUG
105 0 4 if (%$magic)
107 0 0 if $XML::Schema::Handler::Complex::DEBUG
109 0 0 if $XML::Schema::Handler::Complex::DEBUG
111 0 0 if $XML::Schema::Handler::Complex::DEBUG
137 0 0 if (not $$self{'empty'} and $model and $particle = $model->particle)
139 0 0 unless $particle->start
145 4 0 $$self{'_SCHEDULE_start_element'} ? :
171 0 0 unless $name eq $$element{'name'}
173 0 0 if $XML::Schema::Handler::Complex::DEBUG
175 0 0 if (my $particle = $$self{'particle'})
176 0 0 unless $particle->end($instance, $name)
187 0 0 $$self{'_SCHEDULE_end_element'} ? :
197 0 0 if $XML::Schema::Handler::Complex::DEBUG
198 0 0 unless $instance->id($value, $result)
206 0 0 if $XML::Schema::Handler::Complex::DEBUG
209 0 0 if ($type eq 'attribute')
210 0 0 if $XML::Schema::Handler::Complex::DEBUG
233 0 0 if $XML::Schema::Handler::Complex::DEBUG
236 0 0 if $$self{'empty'}
239 0 0 unless $particle = $$self{'particle'}
241 0 0 unless $element = $particle->element($name)
244 0 0 unless $handler = $element->handler($instance)
257 0 0 $$self{'_SCHEDULE_start_child'} ? :
269 0 0 if $XML::Schema::Handler::Complex::DEBUG
272 0 0 if $$self{'empty'}
276 0 0 if $$self{'_SCHEDULE_end_child'}
279 0 0 exists $$child{'result'} ? :
281 0 0 if defined $result
297 0 0 if $XML::Schema::Handler::Complex::DEBUG
301 0 0 if $$self{'empty'}
304 0 0 unless $$self{'mixed'} or $text =~ /^\s*$/
306 0 0 if $$self{'mixed'}