Branch Coverage

lib/XML/Schema/Instance.pm
Criterion Covered Total %
branch 8 50 16.0


line true false branch
47 0 3 if $XML::Schema::Instance::DEBUG
50 0 3 unless $self->_mandatory($mand, $config)
73 0 2 if $XML::Schema::Instance::DEBUG
75 1 1 unless defined $ref
79 0 1 if defined $$self{'_ID'}{$id}
97 0 2 if $XML::Schema::Instance::DEBUG
117 0 0 if $XML::Schema::Instance::DEBUG
132 0 1 if ($XML::Schema::Instance::DEBUG)
133 0 0 ref $type && UNIVERSAL::can($type, 'ID') ? :
135 0 0 ref $element && UNIVERSAL::can($element, 'ID') ? :
159 0 0 if $XML::Schema::Instance::DEBUG
227 0 0 unless $handler->start_element($self)
232 0 0 if $XML::Schema::Instance::DEBUG
258 0 0 if ($XML::Schema::Instance::DEBUG)
260 0 0 if $attr
265 0 0 if (length($text = $$expat{'_SCHEMA_TEXT'}))
266 0 0 if $XML::Schema::Instance::DEBUG
267 0 0 unless $parent->text($self, $text)
279 0 0 unless $handler->start_element($self, @$child{'name', 'attributes'})
297 0 0 if $XML::Schema::Instance::DEBUG
300 0 0 if (length($text = $$expat{'_SCHEMA_TEXT'}))
301 0 0 if $XML::Schema::Instance::DEBUG
302 0 0 unless $element->text($self, $text)
342 0 0 if $XML::Schema::Instance::DEBUG
366 0 0 unless $expat