Condition Coverage

blib/lib/JSONSchema/Validator/Constraints/Draft4.pm
Criterion Covered Total %
condition 19 33 57.5


and 3 conditions

line !l l&&!r l&&r condition
294 71 28 136 $schema->{'properties'} and exists $schema->{'properties'}{$p}
295 79 8 12 $patterns and $p =~ /$patterns/u
421 0 0 598 defined $e and defined $instance

or 2 conditions

line l !l condition
59 321 0 $params{'strict'} // 1
251 10 0 $schema->{'items'} // {}
290 79 58 $schema->{'patternProperties'} // {}

or 3 conditions

line l !l&&r !l&&!r condition
79 1788 1458 1119 $_[3] // $_[0]->strict
421 0 0 602 $self->check_type($e, "object", 1) or $self->check_type($e, "array", 1)
0 0 0 defined $e || defined $instance
426 0 0 0 $self->check_type($instance, 'object') || $self->check_type($instance, 'array')
532 0 2 3 $div == "Inf" or int $div != $div
642 4 0 40 $type eq "object" or $type eq "array"