Condition Coverage

blib/lib/JSON/SchemaValidator.pm
Criterion Covered Total %
condition 16 60 26.6


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)
475 0 0 0 exists $schema->{'properties'}{$key}{'required'} and _is_boolean($schema->{'properties'}{$key}{'required'})
543 0 0 0 _is_boolean($schema->{'additionalProperties'}) and not $schema->{'additionalProperties'}
869 0 0 0 $exp_type eq 'integer' and _type($json) eq 'number'
925 1 17 5 defined $value && ref $value eq 'HASH'
931 1 12 4 defined $value && ref $value eq 'ARRAY'
937 0 11 2 defined $value && &JSON::is_bool($value)
949 4 0 7 $flags & 12288 and not $flags & 16384
965 6 0 4 $flags & 4096 and not $flags & 16384
1050 0 0 0 $schema and $pointer

or 3 conditions

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