Condition Coverage

lib/XML/Compile/Translate.pm
Criterion Covered Total %
condition 132 190 69.4


and 3 conditions

line !l l&&!r l&&r condition
237 5791 0 3344 $n->isa("XML::LibXML::Element") and $n->namespaceURI eq $schemans
523 181 26 3 defined $facets{'totalDigits'} and defined $facets{'fractionDigits'}
557 7 1031 876 $parent && $parent->isa('XML::LibXML::Element') && $parent->localname eq 'schema'
726 1849 37 0 $default and $fixed
744 1886 0 0 $self->{'permit_href'} and $self->actsAs("READER")
753 0 1879 7 $comptype and $self->{'xsi_type'}{$comptype}
756 1884 1 1 $self->{'xsi_type_everywhere'} and not $comptype =~ /^unnamed /
784 795 649 26 ($self->actsAs('WRITER') || $self->{'default_values'} ne 'EXTEND') && ($node->getAttribute('default') || $node->getAttribute('fixed'))
790 1724 6 2 $self->{'interpret_nillable_as_optional'} and $self->isTrue($node->getAttribute('nillable') || 'false')
797 75 1590 67 $max ne "unbounded" and $max > 1
1665 61 6 $max ne "unbounded" and $max > 1 and not $self->{'check_occurs'}
800 1651 73 8 $max eq "unbounded" and not $self->{'check_occurs'}
1046 0 248 13 $parent && $parent->localname eq 'schema'
1198 10 0 0 $^W and $node->getAttribute("notQName")
1225 10 0 0 $^W and $node->getAttribute("notQName")
1248 8 0 8 defined $list and length $list
1470 28 4 1 $name ne "extension" and $name ne "restriction"
1524 1620 631 0 length $prefix and not defined $uri
1542 0 420 735 defined $prefix and not $prefs{$prefix}
1571 0 53 8 not $match and $hook->{'path'}
1578 32 12 15 !$match && $hook->{'id'} && $node->getAttribute('id')
1586 10 0 51 not $match and defined $type
10 15 36 not $match and defined $type and $hook->{'type'}
1596 23 0 38 not $match and defined $type
23 38 0 not $match and defined $type and $hook->{'extends'}

or 2 conditions

line l !l condition
63 0 779 $args->{'prefixes'} || {}
90 760 19 $self->{'hooks'} ||= []
91 763 16 $self->{'typemap'} ||= {}
176 1843 0 $self->{'elements_qualified'} || 0
190 22 0 $self->{'attributes_qualified'} || 0
696 104 13 $basex // "unnamed simple"
0 383 $basex // "unnamed complex"
706 1654 4004 $_ ||= []
711 44 1842 $node->getAttribute('nillable') || 'false'
790 2 6 $node->getAttribute('nillable') || 'false'
1134 47 209 $node->getAttribute('use') || ''
1194 10 0 $node->getAttribute('namespace') || '##any'
1196 10 0 $node->getAttribute('processContents') || 'strict'
1221 10 0 $node->getAttribute('namespace') || '##any'
1223 10 0 $node->getAttribute('processContents') || 'strict'
1278 9 597 $node->getAttribute('mixed') || 'false'
1423 8 0 $tree->currentLocal || ''

or 3 conditions

line l !l&&r !l&&!r condition
86 44 735 0 $self->prefixed($item, 1) || $item
99 9 0 0 $nsp->find("complexType", $t) or $nsp->find("simpleType", $t)
225 769 8 0 $nss->find('element', $fullname) || $nss->find('attribute', $fullname)
289 193 189 0 $self->namespaces->find('complexType', $typename) || $self->namespaces->find('simpleType', $typename)
346 0 40 0 $self->blocked($where, 'simpleType', $typename) || $self->typeByName($where, $tree, $typename)
389 0 43 0 $self->blocked($where, 'simpleType', $typename) || $self->typeByName($where, $tree, $typename)
425 2 277 0 $self->blocked($where, 'simpleType', $typename) || $self->typeByName($where, $tree, $typename)
453 16 23 240 $in_list || $base->{'is_list'}
515 0 77 210 $self->{'ignore_facets'} or not keys %facets
580 0 868 8 $node->getAttribute('targetNamespace') || $parent->getAttribute('targetNamespace')
592 0 1030 8 $node->getAttribute('targetNamespace') || $context->{'tns'}
658 18 1351 0 $self->blocked($where, 'anyType', $comptype) || $self->typeByName($where, $tree, $comptype)
673 0 5 0 $self->blocked($where, 'complexType', $comptype) || $self->typeByName($where, $tree, $comptype)
714 20 0 1312 @$attrs || @$attrs_any
719 1332 554 0 $st || $elems
749 9 5 1872 $before or $replace
14 9 1863 $before or $replace or $after
1072 0 13 0 $node->getAttribute('targetNamespace') || $parent->getAttribute('targetNamespace')
1122 2 247 0 $self->blocked($where, 'simpleType', $typename) || $self->typeByName($where, $tree, $typename)
1286 494 32 56 $name =~ /$particle_blocks/ or $name =~ /$attribute_defs/
1397 0 14 0 $self->blocked($where, 'simpleType', $typename) || $self->typeByName($where, $tree, $typename)
1430 0 4 0 $self->blocked($where, 'simpleType', $type) || $self->typeByName($where, $tree, $typename)
1476 32 0 0 $node->getAttribute('base') || $self->anyType($node)
1505 0 0 32 $type->{'mixed'} ||= $own->{'mixed'}
1569 8 21 32 $hook->{'path'} or $hook->{'id'}
21 32 0 $hook->{'path'} or $hook->{'id'} or $hook->{'type'}
32 0 0 $hook->{'path'} or $hook->{'id'} or $hook->{'type'} or $hook->{'extends'}