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
293 71 28 136 $schema->{'properties'} and exists $schema->{'properties'}{$p}
294 79 8 12 $patterns and $p =~ /$patterns/u
420 0 0 593 defined $e and defined $instance

or 2 conditions

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

or 3 conditions

line l !l&&r !l&&!r condition
79 1768 1458 1059 $_[3] // $_[0]->strict
420 0 0 597 $self->check_type($e, "object", 1) or $self->check_type($e, "array", 1)
0 0 0 defined $e || defined $instance
425 0 0 0 $self->check_type($instance, 'object') || $self->check_type($instance, 'array')
531 0 2 3 $div == "Inf" or int $div != $div
641 4 0 40 $type eq "object" or $type eq "array"