Condition Coverage

blib/lib/JSON/SchemaValidator.pm
Criterion Covered Total %
condition 18 60 30.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 7 0 0 $schema->{'id'} and _is_string($schema->{'id'})
200 7 0 0 $schema->{'$ref'} and _is_string($schema->{'$ref'})
234 6 0 0 $schema->{'$ref'} and _is_string($schema->{'$ref'})
388 0 1 1 @results and not grep({$_->is_success;} @results)
479 2 0 0 exists $schema->{'properties'}{$key}{'required'} and _is_boolean($schema->{'properties'}{$key}{'required'})
547 0 0 0 _is_boolean($schema->{'additionalProperties'}) and not $schema->{'additionalProperties'}
873 0 0 0 $exp_type eq 'integer' and _type($json) eq 'number'
929 4 27 23 defined $value && ref $value eq 'HASH'
935 1 17 8 defined $value && ref $value eq 'ARRAY'
941 0 11 2 defined $value && &JSON::is_bool($value)
953 4 0 7 $flags & 12288 and not $flags & 16384
969 6 0 4 $flags & 4096 and not $flags & 16384
1054 0 0 0 $schema and $pointer

or 3 conditions

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