Branch Coverage

blib/lib/JSON/Schema/Modern/Document/OpenAPI.pm
Criterion Covered Total %
branch 35 38 92.1


line true false branch
132 115 1 $data =~ /^3\.1\.[0-9]+(-.+)?$/u ? :
137 5 114 unless ($top_result)
157 1 113 if (@{$check_metaschema_state->{'errors'}})
176 209 0 if $schema->{'$dynamicRef'} eq "#meta"
181 501 4068 if $entity and $reffable_entities->check($entity)
185 24 4545 if $schema->{'$ref'} eq "#/\$defs/operation" and defined $data->{'operationId'}
193 6 107 unless ($result)
204 2 98 if (my $first_path = $seen_path{$normalized})
214 1 106 if @{$state->{'errors'}}
223 46 161 if $idx != $#json_schema_paths and substr($json_schema_paths[$idx], 0, length($real_json_schema_paths[-1]) + 1) eq $real_json_schema_paths[-1] . "/"
233 6 18 if (my $existing = $self->get_operationId_path($operation_id)) { }
253 1 58 if $depth++ > $self->evaluator->max_traversal_depth
256 1 57 unless $schema_info
263 2 0 wantarray ? :
277 4 1 if $x >= -$bound
283 4 1 if $x >= -$bound
294 238 476 if $uri =~ /schema(-base)?$/u
300 37 124 unless XXX and keys %$schema
310 0 124 if @{$subschema_state->{'errors'}}