| blib/lib/JSON/Schema/Modern/Result.pm | |||
|---|---|---|---|
| Criterion | Covered | Total | % |
| condition | 29 | 48 | 60.4 |
| line | !l | l&&!r | l&&r | condition |
|---|---|---|---|---|
| 148 | 204 | 17200 | 10 | exists $$args{"data"} and exists $$args{"defaults"} |
| 161 | 1 | 14297 | 25 | $formatted_annotations && $self->annotation_count |
| 11446 | 14313 | 10 | $self->valid && $self->defaults | |
| 171 | 0 | 0 | 0 | $formatted_annotations && $self->annotation_count |
| 207 | 0 | 0 | 0 | $formatted_annotations && $self->annotation_count |
| 228 | 1 | 0 | 7 | builtin::blessed($other) and $other->isa(__PACKAGE__) |
| 232 | 2 | 2 | 2 | $self->valid && $other->valid |
| line | l | !l | condition |
|---|---|---|---|
| 77 | 0 | 3 | $_[0]{"_errors"} // [] |
| 6 | 0 | $_[0]{"errors"} // [] | |
| 79 | 24 | 14297 | $_[0]{"_annotations"} // [] |
| 6 | 14316 | $_[0]{"annotations"} // [] | |
| 232 | 3 | 0 | $self->defaults // {} |
| 3 | 0 | $other->defaults // {} |
| line | l | !l&&r | !l&&!r | condition |
|---|---|---|---|---|
| 154 | 0 | 25775 | 0 | $formatted_annotations //= $self->formatted_annotations |
| 183 | 0 | 17 | 12 | !$keyword || !grep(($keyword eq $_), ('allOf', 'anyOf', 'if', 'then', 'else', 'dependentSchemas', 'contains', 'propertyNames')) && ($keyword ne 'oneOf' || $error ne 'no subschemas are valid') && ($keyword ne 'prefixItems' || $error eq 'item not permitted') && ($keyword ne 'items' || $error eq 'item not permitted' || $error eq 'additional 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') |
| 204 | 0 | 2 | 0 | $self->valid or @errors |
| 232 | 6 | 0 | 0 | $self->formatted_annotations || $other->formatted_annotations |
| 3 | 0 | 3 | $self->defaults || $other->defaults |