line |
true |
false |
branch |
249
|
1 |
8 |
unless $source |
261
|
7 |
1 |
unless $args->{'exclude_required'} |
262
|
7 |
1 |
unless $args->{'include_required'} |
263
|
7 |
1 |
unless $args->{'exclude_properties'} |
270
|
1 |
7 |
$dependencies ? : |
284
|
1 |
195 |
if $exclude_properties{$column} |
292
|
0 |
195 |
unless my $json_type = $self->type_map->{$column_info->{'data_type'}} |
299
|
7 |
188 |
if ($format_type) |
304
|
139 |
56 |
if (not $format_type and $self->length_map->{$column_info->{'data_type'}}) |
310
|
8 |
187 |
if ($is_required_field or not $column_info->{'default_value'} || $column_info->{'is_nullable'} || $exclude_required{$column}) |
316
|
6 |
161 |
if (not $ignore_property_defaults and defined $column_info->{'default_value'} and not ref $column_info->{'default_value'}) |
321
|
14 |
0 |
if ($json_type eq 'enum' and $column_info->{'extra'} and $column_info->{'extra'}{'list'}) |
326
|
172 |
21 |
if (not $is_required_field and $column_info->{'is_nullable'}) |
327
|
14 |
158 |
if ($json_type eq 'enum') { } |
337
|
4 |
191 |
if ($json_type eq 'number' and $decimals_to_pattern) |
338
|
1 |
3 |
if ($column_info->{'size'} and ref $column_info->{'size'} eq 'ARRAY') |
345
|
30 |
165 |
if ($self->pattern_map->{$column_info->{'data_type'}}) |
350
|
0 |
195 |
if (not $json_schema{'properties'}{$column}{'description'} and $has_schema_property_description) |
359
|
0 |
195 |
if ($add_schema_properties) |
366
|
2 |
193 |
if (my $overwrite_property = delete $overwrite_schema_properties->{$column}) |
370
|
1 |
1 |
$action eq 'merge' ? : |
376
|
2 |
193 |
if (my $new_key = $overwrite_schema_property_keys->{$column}) |
406
|
0 |
0 |
unless ($property->{'type'}) |
407
|
0 |
0 |
if ($property->{'enum'}) |
414
|
0 |
0 |
if $property->{'type'} eq 'object' |
417
|
0 |
0 |
if (ref $property->{'type'} eq 'ARRAY') { } |
425
|
0 |
0 |
if $types{'null'} |
428
|
0 |
0 |
if (grep {/^integer|number$/;} keys %types) { } |
435
|
0 |
0 |
$description ? : |
438
|
0 |
0 |
if (grep {/^integer$/;} keys %types and $property->{'maximum'}) { } |
|
0 |
0 |
elsif (grep {/^string$/;} keys %types and $property->{'pattern'}) { } |
460
|
0 |
139 |
if $column_info->{'is_auto_increment'} |
462
|
40 |
99 |
if $add_property_minimum_value |
466
|
34 |
105 |
if ($column_info->{'size'}) |
477
|
0 |
0 |
if ($column_info->{'extra'} and $column_info->{'extra'}{'unsigned'}) |
482
|
180 |
98 |
ref $self->length_map->{$column_info->{'data_type'}} eq 'ARRAY' ? : |