blib/lib/Yancy/Model/Schema.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 36 | 40 | 90.0 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
141 | 404 | 5 | 20 | is_type($prop->{'type'}, "boolean") and defined $check_item{$prop_name} |
153 | 112 | 214 | 103 | is_type($prop->{'type'}, "string") and $prop->{'format'} |
214 | 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 | 326 | 84 | 19 | $prop->{'format'} and $prop->{'format'} eq "password" |
410 | 19 | 0 | $prop->{'format'} and $prop->{'format'} eq "password" and not $check_item{$prop_name} | |
171 | 393 | 35 | 1 | $prop->{'readOnly'} and exists $check_item{$prop_name} |
287 | 515 | 113 | 113 | $json_schema->{'x-view'} and not $props |
line | l | !l | condition |
---|---|---|---|
84 | 686 | 504 | $self->json_schema->{'x-id-field'} // "id" |
154 | 14 | 0 | ($check_item{$prop_name} // $prop->{'default'}) // "" |
190 | 105 | 11 | $self->_backend->get($self->name, $id, %opt) // (return undef) |
285 | 738 | 3 | $json_schema->{'type'} //= "object" |
289 | 113 | 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'} |