Branch Coverage

lib/XML/Schema/Scope.pm
Criterion Covered Total %
branch 35 56 62.5


line true false branch
47 2 88 unless $self->init_mandopt($config)
89 15 132 if @_
93 7 125 if $type = $$self{'_TYPES'}{$name}
96 34 91 if ($scope = $$self{'scope'})
97 0 34 if $XML::Schema::Scope::DEBUG
109 89 2 if ($class = $simple->builtin($name)) { }
143 0 13 if (ref $_[0]) { }
4 9 elsif (scalar @_ == 1) { }
156 0 9 if ($factory->isa('simple', $args)) { }
163 0 8 unless defined($name = $type->name)
166 0 8 if $XML::Schema::Scope::DEBUG
184 0 5 if (ref $_[0]) { }
0 5 elsif (scalar @_ == 1) { }
197 0 5 if ($factory->isa('complex', $args)) { }
200 0 0 unless defined $type->scope
208 5 0 if UNIVERSAL::isa($args, 'HASH') and not exists $$args{'scope'}
213 0 5 unless defined($name = $type->name)
216 0 5 if $XML::Schema::Scope::DEBUG
233 3 0 if (@_) { }
234 0 3 if ($factory->isa('element', $_[0])) { }
235 0 0 if $XML::Schema::Scope::DEBUG
239 0 3 UNIVERSAL::isa($_[0], 'HASH') ? :
240 3 0 unless exists $$args{'scope'}
241 0 3 if $XML::Schema::Scope::DEBUG
268 1 36 unless defined $group
274 10 26 if (ref $group) { }
278 4 6 unless $factory->isa('attribute_group', $group)
285 0 9 unless defined $name