Branch Coverage

lib/XML/Compile/Schema/NameSpaces.pm
Criterion Covered Total %
branch 39 70 55.7


line true false branch
44 2460 2191 $nss ? :
55 0 58 unless @tnses
89 3869 0 @_ % 2 == 1 ? :
92 0 3869 unless defined $ns
97 2246 262 if defined $def
100 0 1623 exists $opts{'include_used'} ? :
101 0 1623 unless $used
105 0 0 if defined $def
114 15 800 if $ext eq $base
115 0 800 if $ext =~ /^unnamed /
118 86 714 if (my $st = $self->find('simpleType', $ext)) { }
4 710 elsif (my $ct = $self->find('complexType', $ext)) { }
121 80 6 if (($subnode) = $node->getChildrenByLocalName('restriction'))
129 2 2 if (my($sc) = $node->getChildrenByLocalName('simpleContent')) { }
2 0 elsif (my($cc) = $node->getChildrenByLocalName('complexContent')) { }
131 2 0 if (($subnode) = $sc->getChildrenByLocalName('extension')) { }
0 0 elsif (($subnode) = $sc->getChildrenByLocalName('restriction')) { }
140 2 0 if (($subnode) = $cc->getChildrenByLocalName('extension')) { }
0 0 elsif (($subnode) = $cc->getChildrenByLocalName('restriction')) { }
151 0 710 unless $ns eq 'http://www.w3.org/2001/XMLSchema' and $XML::Compile::Schema::NameSpaces::builtin_types{$local}
155 0 710 unless $ns eq $bns
159 12 2796 if $e eq $blocal
164 704 84 unless $super
167 26 58 $super =~ /:/ ? :
170 7 77 $base eq $supertype ? :
178 0 2 if ($self->find('simpleType', $type)) { }
2 0 elsif ($self->find('complexType', $type)) { }
202 1097 22 unless my $s = $self->{'sgs'}{$base}
216 771 0 @_ == 1 ? :
218 0 771 unless defined $ns
225 0 0 unless @nodes = $xpc->findnodes("/*/a:*#$id", $fragment->schema)
228 0 0 if @nodes == 1
242 0 0 @_ % 2 ? :
246 0 0 ref $nss eq 'ARRAY' ? :
250 0 0 exists $opts{'include_used'} ? :