Branch Coverage

blib/lib/JSON/Schema/Modern/Document/OpenAPI.pm
Criterion Covered Total %
branch 30 32 93.7


line true false branch
131 114 1 $data =~ /^3\.1\.[0-9]+(-.+)?$/u ? :
136 5 113 unless ($top_result)
156 1 112 if (@{$check_metaschema_state->{'errors'}})
175 200 0 if $schema->{'$dynamicRef'} eq "#meta"
180 479 3948 if $entity and $reffable_entities->check($entity)
184 24 4403 if $schema->{'$ref'} eq "#/\$defs/operation" and defined $data->{'operationId'}
192 6 106 unless ($result)
203 2 97 if (my $first_path = $seen_path{$normalized})
213 1 105 if @{$state->{'errors'}}
222 46 152 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] . "/"
232 6 18 if (my $existing = $self->get_operationId_path($operation_id)) { }
257 4 1 if $x >= -$bound
263 4 1 if $x >= -$bound
274 236 472 if $uri =~ /schema(-base)?$/u
280 36 116 unless XXX and keys %$schema
290 0 116 if @{$subschema_state->{'errors'}}