Condition Coverage

blib/lib/JSON/Schema/Draft201909/Result.pm
Criterion Covered Total %
condition 15 21 71.4


and 3 conditions

line !l l&&!r l&&r condition
106 12 0 28 $keep and $keyword
12 16 12 $keep and $keyword and $keyword =~ /^unevaluated(?:Items|Properties)$/u
16 2 10 $keep and $keyword and $keyword =~ /^unevaluated(?:Items|Properties)$/u and not $error =~ /"$keyword" keyword present, but/u
114 7 2 0 ($keyword eq 'unevaluatedProperties' && $error eq 'additional property not permitted' || $keyword eq 'unevaluatedItems' && $error eq 'additional item not permitted') && !$instance_locations{$_->instance_location} && !grep(/^$parent_keyword_location/u, keys %keyword_locations)

or 3 conditions

line l !l&&r !l&&!r condition
58 2505 2167 0 $self->valid || $self->error_count
93 0 28 12 !$keyword || !grep(($keyword eq $_), ('allOf', 'anyOf', 'if', 'then', 'else', 'dependentSchemas', 'contains', 'propertyNames')) && ($keyword ne 'oneOf' || $error ne 'no subschemas are valid') && ($keyword ne 'items' || $error eq 'item not permitted') && ($keyword ne 'additionalItems' || $error eq 'additional item not permitted') && (!grep(($keyword eq $_), ('properties', 'patternProperties')) || $error eq 'property not permitted') && ($keyword ne 'additionalProperties' || $error eq 'additional property not permitted') && ($keyword ne 'dependentRequired' || $error ne 'not all dependencies are satisfied')
126 0 3 0 $self->valid or @errors