Condition Coverage

lib/XML/Schema/Facet/Builtin.pm
Criterion Covered Total %
condition 35 52 67.3


or 2 conditions

line l !l condition
357 19 0 $XML::Schema::Facet::duration::TYPE->instance($$self{'value'}) || (return $self->error('duration ' . $XML::Schema::Facet::duration::TYPE->error))
386 18 1 $XML::Schema::Facet::period::TYPE->instance($$self{'value'}) || (return $self->error('period ' . $XML::Schema::Facet::period::TYPE->error))

or 3 conditions

line l !l&&r !l&&!r condition
68 1 0 1 $length == $$self{'value'} || $self->invalid("list has $length elements")
73 2 0 2 $length == $$self{'value'} || $self->invalid("string has $length characters")
96 4 0 2 $length >= $$self{'value'} || $self->invalid("list has $length elements")
101 4 0 3 $length >= $$self{'value'} || $self->invalid("string has $length characters")
124 9 0 3 $length <= $$self{'value'} || $self->invalid("list has $length elements")
129 17 0 4 $length <= $$self{'value'} || $self->invalid("string has $length characters")
145 16 0 12 $$instance{'value'} =~ /$$self{'value'}/ || $self->invalid('string mismatch')
183 1 0 2 $$self{'errmsg'} || "string mismatch ('${value}' not in: '@${allow}')"
241 54 0 12 $$instance{'value'} <= $$self{'value'} || $self->invalid("value is $$instance{'value'}")
257 8 0 2 $$instance{'value'} < $$self{'value'} || $self->invalid("value is $$instance{'value'}")
273 62 0 12 $$instance{'value'} >= $$self{'value'} || $self->invalid("value is $$instance{'value'}")
289 1 0 1 $$instance{'value'} > $$self{'value'} || $self->invalid("value is $$instance{'value'}")
304 2 0 2 $$instance{'precision'} <= $$self{'value'} || $self->invalid("value is $$instance{'value'}")
319 114 0 5 $$instance{'scale'} <= $$self{'value'} || $self->invalid("value is $$instance{'value'}")
355 12 7 0 $XML::Schema::Facet::duration::TYPE ||= 'XML::Schema::Type::timeDuration'->new
384 12 7 0 $XML::Schema::Facet::period::TYPE ||= 'XML::Schema::Type::timeDuration'->new