Condition Coverage

lib/XML/Schema/Scope.pm
Criterion Covered Total %
condition 17 31 54.8


and 3 conditions

line !l l&&!r l&&r condition
208 0 0 5 UNIVERSAL::isa($args, 'HASH') and not exists $$args{'scope'}

or 2 conditions

line l !l condition
53 0 88 $$config{'types'} || {}
104 91 0 $$self{'_FACTORY'} || (return $self->error('no factory defined'))
106 91 0 $factory->module('simple') || (return $self->error($factory->error))
160 8 1 $factory->create('simple', $args) || (return $self->error($factory->error))
210 5 0 $factory->create('complex', $args) || (return $self->error($factory->error))
231 3 0 $$self{'_FACTORY'} || (return $self->error('no factory defined'))
278 3 1 $factory->create('attribute_group', $group) || (return $self->error($factory->error))
293 25 1 $$self{'_ATTRIBUTE_GROUPS'}{$name} || (return $self->error("no such attribute group: $name"))

or 3 conditions

line l !l&&r !l&&!r condition
50 0 88 0 $$self{'_FACTORY'} ||= $XML::Schema::FACTORY
98 32 0 2 $scope->type($name) || $self->error($scope->error)
110 89 0 0 $class->new || $self->error($class->error)
242 3 0 0 $factory->create('element', $args) || $self->error($factory->error)