Condition Coverage

lib/XML/Compile/Translate.pm
Criterion Covered Total %
condition 133 192 69.2


and 3 conditions

line !l l&&!r l&&r condition
237 5687 0 3286 $n->isa('XML::LibXML::Element') and $n->namespaceURI eq $schemans
523 181 26 3 defined $facets{'totalDigits'} and defined $facets{'fractionDigits'}
557 7 1013 860 $parent && $parent->isa('XML::LibXML::Element') && $parent->localname eq 'schema'
725 1815 37 0 $default and $fixed
744 1852 0 0 $self->{'permit_href'} and $self->actsAs('READER')
754 0 1845 7 $comptype and $self->{'xsi_type'}{$comptype}
757 1850 1 1 $self->{'xsi_type_everywhere'} and not $comptype =~ /^unnamed /
785 775 629 26 ($self->actsAs('WRITER') || $self->{'default_values'} ne 'EXTEND') && ($node->getAttribute('default') || $node->getAttribute('fixed'))
791 1684 6 2 $self->{'interpret_nillable_as_optional'} and $self->isTrue($node->getAttribute('nillable') || 'false')
798 71 1554 67 $max ne 'unbounded' and $max > 1
1625 61 6 $max ne 'unbounded' and $max > 1 and not $self->{'check_occurs'}
801 1615 69 8 $max eq 'unbounded' and not $self->{'check_occurs'}
1047 0 246 13 $parent && $parent->localname eq 'schema'
1096 246 0 8 $qual and $ns
246 8 0 $qual and $ns and $self->prefixForNamespace($ns) eq ''
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
1474 28 4 1 $name ne 'extension' and $name ne 'restriction'
1528 1508 607 0 length $prefix and not defined $uri
1546 0 417 724 defined $prefix and not $prefs{$prefix}
1575 0 53 8 not $match and $hook->{'path'}
1582 32 12 15 !$match && $hook->{'id'} && $node->getAttribute('id')
1590 10 0 51 not $match and defined $type
10 15 36 not $match and defined $type and $hook->{'type'}
1600 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 771 $args->{'prefixes'} || {}
90 752 19 $self->{'hooks'} ||= []
91 755 16 $self->{'typemap'} ||= {}
176 1817 0 $self->{'elements_qualified'} || 0
190 22 0 $self->{'attributes_qualified'} || 0
705 1612 3944 $_ ||= []
710 44 1808 $node->getAttribute('nillable') || 'false'
791 2 6 $node->getAttribute('nillable') || 'false'
1134 47 207 $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 583 $node->getAttribute('mixed') || 'false'
1427 8 0 $tree->currentLocal || ''

or 3 conditions

line l !l&&r !l&&!r condition
86 44 727 0 $self->prefixed($item, 1) || $item
99 9 0 0 $nsp->find('complexType', $t) or $nsp->find('simpleType', $t)
225 761 8 0 $nss->find('element', $fullname) || $nss->find('attribute', $fullname)
289 191 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 852 8 $node->getAttribute('targetNamespace') || $parent->getAttribute('targetNamespace')
592 0 1012 8 $node->getAttribute('targetNamespace') || $context->{'tns'}
659 18 1329 0 $self->blocked($where, 'anyType', $comptype) || $self->typeByName($where, $tree, $comptype)
675 0 5 0 $self->blocked($where, 'complexType', $comptype) || $self->typeByName($where, $tree, $comptype)
713 20 0 1292 @$attrs || @$attrs_any
718 1312 540 0 $st || $elems
750 9 5 1838 $before or $replace
14 9 1829 $before or $replace or $after
1073 0 13 0 $node->getAttribute('targetNamespace') || $parent->getAttribute('targetNamespace')
1122 2 245 0 $self->blocked($where, 'simpleType', $typename) || $self->typeByName($where, $tree, $typename)
1286 480 32 56 $name =~ /$particle_blocks/ or $name =~ /$attribute_defs/
1399 0 14 0 $self->blocked($where, 'simpleType', $typename) || $self->typeByName($where, $tree, $typename)
1434 0 4 0 $self->blocked($where, 'simpleType', $type) || $self->typeByName($where, $tree, $typename)
1480 32 0 0 $node->getAttribute('base') || $self->anyType($node)
1509 0 0 32 $type->{'mixed'} ||= $own->{'mixed'}
1573 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'}