Condition Coverage

blib/lib/DBIx/Result/Convert/JSONSchema.pm
Criterion Covered Total %
condition 39 64 60.9


and 3 conditions

line !l l&&!r l&&r condition
287 6 42 119 not $format_type and $self->length_map->{$column_info->{'data_type'}}
299 161 6 0 $column_info->{'default_value'} and not ref $column_info->{'default_value'}
304 155 0 12 $json_type eq 'enum' and $column_info->{'extra'}
0 0 12 $json_type eq 'enum' and $column_info->{'extra'} and $column_info->{'extra'}{'list'}
309 2 12 153 not $is_required_field and $column_info->{'is_nullable'}
320 143 20 4 $json_type eq 'number' and $decimals_to_pattern
321 3 0 1 $column_info->{'size'} and ref $column_info->{'size'} eq 'ARRAY'
333 0 167 0 not $json_schema{'properties'}{$column}{'description'} and $has_schema_property_description
421 0 0 0 grep {/^integer$/;} keys %types and $property->{'maximum'}
0 0 0 grep {/^string$/;} keys %types and $property->{'pattern'}
459 238 0 0 $column_info->{'extra'} and $column_info->{'extra'}{'unsigned'}

or 2 conditions

line l !l condition
236 4 3 $args //= {}
241 1 6 $args->{'overwrite_schema_property_keys'} // {}
243 1 6 $args->{'overwrite_schema_properties'} // {}
249 1 6 $args->{'schema_declaration'} // 'http://json-schema.org/schema#'
250 1 6 $args->{'allow_additional_properties'} // 0
251 1 6 $args->{'schema_overwrite'} // {}
311 12 0 $json_schema{'properties'}{$column}{'enum'} //= []
350 2 0 delete $overwrite_property->{'_action'} // 'merge'

or 3 conditions

line l !l&&r !l&&!r condition
293 153 1 5 $column_info->{'default_value'} || $column_info->{'is_nullable'} || $exclude_required{$column}
2 5 160 $is_required_field or not $column_info->{'default_value'} || $column_info->{'is_nullable'} || $exclude_required{$column}
294 0 7 0 $overwrite_schema_property_keys->{$column} // $column
336 0 0 0 $overwrite_schema_property_keys->{$column} // $column
422 0 0 0 $property->{'default'} // int rand $property->{'maximum'}