blib/lib/DBIx/Result/Convert/JSONSchema.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 43 | 67 | 64.1 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
304 | 7 | 49 | 139 | not $format_type and $self->length_map->{$column_info->{'data_type'}} |
316 | 28 | 155 | 12 | not $ignore_property_defaults and defined $column_info->{'default_value'} |
183 | 6 | 6 | not $ignore_property_defaults and defined $column_info->{'default_value'} and not ref $column_info->{'default_value'} | |
321 | 181 | 0 | 14 | $json_type eq 'enum' and $column_info->{'extra'} |
0 | 0 | 14 | $json_type eq 'enum' and $column_info->{'extra'} and $column_info->{'extra'}{'list'} | |
326 | 2 | 21 | 172 | not $is_required_field and $column_info->{'is_nullable'} |
337 | 167 | 24 | 4 | $json_type eq 'number' and $decimals_to_pattern |
338 | 3 | 0 | 1 | $column_info->{'size'} and ref $column_info->{'size'} eq 'ARRAY' |
350 | 0 | 195 | 0 | not $json_schema{'properties'}{$column}{'description'} and $has_schema_property_description |
438 | 0 | 0 | 0 | grep {/^integer$/;} keys %types and $property->{'maximum'} |
0 | 0 | 0 | grep {/^string$/;} keys %types and $property->{'pattern'} | |
477 | 278 | 0 | 0 | $column_info->{'extra'} and $column_info->{'extra'}{'unsigned'} |
line | l | !l | condition |
---|---|---|---|
251 | 7 | 1 | $args //= {} |
257 | 1 | 7 | $args->{'overwrite_schema_property_keys'} // {} |
259 | 1 | 7 | $args->{'overwrite_schema_properties'} // {} |
266 | 1 | 7 | $args->{'schema_declaration'} // 'http://json-schema.org/schema#' |
267 | 1 | 7 | $args->{'allow_additional_properties'} // 0 |
268 | 1 | 7 | $args->{'schema_overwrite'} // {} |
328 | 14 | 0 | $json_schema{'properties'}{$column}{'enum'} //= [] |
367 | 2 | 0 | delete $overwrite_property->{'_action'} // 'merge' |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
310 | 172 | 1 | 6 | $column_info->{'default_value'} || $column_info->{'is_nullable'} || $exclude_required{$column} |
2 | 6 | 187 | $is_required_field or not $column_info->{'default_value'} || $column_info->{'is_nullable'} || $exclude_required{$column} | |
311 | 0 | 8 | 0 | $overwrite_schema_property_keys->{$column} // $column |
353 | 0 | 0 | 0 | $overwrite_schema_property_keys->{$column} // $column |
439 | 0 | 0 | 0 | $property->{'default'} // int rand $property->{'maximum'} |