blib/lib/Yancy/Model/Schema.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 36 | 40 | 90.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
141 | 413 | 5 | 20 | is_type($prop->{'type'}, "boolean") and defined $check_item{$prop_name} |
153 | 117 | 218 | 103 | is_type($prop->{'type'}, "string") and $prop->{'format'} |
218 | 79 | 24 | is_type($prop->{'type'}, "string") and $prop->{'format'} and $prop->{'format'} =~ /^(?:date-time|date|time)$/u | |
154 | 14 | 9 | 1 | exists $check_item{$prop_name} and not $check_item{$prop_name} |
164 | 335 | 84 | 19 | $prop->{'format'} and $prop->{'format'} eq "password" |
419 | 19 | 0 | $prop->{'format'} and $prop->{'format'} eq "password" and not $check_item{$prop_name} | |
171 | 399 | 38 | 1 | $prop->{'readOnly'} and exists $check_item{$prop_name} |
287 | 635 | 116 | 116 | $json_schema->{'x-view'} and not $props |
line | l | !l | condition |
---|---|---|---|
84 | 847 | 512 | $self->json_schema->{'x-id-field'} // "id" |
154 | 14 | 0 | ($check_item{$prop_name} // $prop->{'default'}) // "" |
190 | 106 | 11 | $self->_backend->get($self->name, $id, %opt) // (return undef) |
285 | 859 | 8 | $json_schema->{'type'} //= "object" |
289 | 116 | 0 | $self->model->schema($real_name) // die(qq[Could not find x-view schema "$real_name" for schema "$name"]) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
143 | 2 | 10 | 8 | $value eq "false" or not $value |
154 | 9 | 14 | 0 | $check_item{$prop_name} // $prop->{'default'} |