Condition Coverage

blib/lib/JSON/SchemaValidator.pm
Criterion Covered Total %
condition 16 57 28.0


and 3 conditions

line !l l&&!r l&&r condition
79 0 0 0 @parts > 0 and @parts < 5
82 0 0 0 $part =~ /^[0-9]+$/ and $part >= 0
0 0 0 $part =~ /^[0-9]+$/ and $part >= 0 and $part < 256
94 0 0 0 @parts > 0 and @parts < 9
151 1 0 0 $schema->{'id'} and _is_string($schema->{'id'})
200 1 0 0 $schema->{'$ref'} and _is_string($schema->{'$ref'})
234 1 0 0 $schema->{'$ref'} and _is_string($schema->{'$ref'})
388 0 0 1 @results and not grep({$_->is_success;} @results)
537 0 0 0 _is_boolean($schema->{'additionalProperties'}) and not $schema->{'additionalProperties'}
863 0 0 0 $exp_type eq 'integer' and _type($json) eq 'number'
919 1 17 5 defined $value && ref $value eq 'HASH'
925 1 12 4 defined $value && ref $value eq 'ARRAY'
931 0 11 2 defined $value && &JSON::is_bool($value)
943 4 0 7 $flags & 12288 and not $flags & 16384
959 6 0 4 $flags & 4096 and not $flags & 16384
1044 0 0 0 $schema and $pointer

or 3 conditions

line l !l&&r !l&&!r condition
863 0 0 0 _is_type($json, $exp_type) or $exp_type eq 'integer' and _type($json) eq 'number'
864 0 0 0 _is_object($json) or _is_array($json)
1038 0 0 0 $schema->{'id'} //= $url