blib/lib/Mojolicious/Plugin/Yancy.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 29 | 39 | 74.3 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
650 | 50 | 5 | 0 | $config->{'openapi'} and $config->{'schema'} || $config->{'read_schema'} |
669 | 54 | 0 | 0 | $config->{'model'} && &blessed($config->{'model'}) |
828 | 41 | 13 | 4 | $prop->{'format'} and $prop->{'format'} eq "password" |
841 | 52 | 25 | 2 | $prop->{'format'} and $prop->{'format'} eq "password" |
867 | 55 | 28 | 60 | !exists $item->{$_} && exists $props->{$_}{'default'} |
917 | 70 | 0 | 5 | &blessed($maybe_route) && $maybe_route->isa('Mojolicious::Routes::Route') |
line | l | !l | condition |
---|---|---|---|
671 | 0 | 54 | $config->{'model'} // "Yancy::Model" |
783 | 16 | 36 | $config->{'editor'} // {} |
818 | 461 | 4 | copy_inline_refs($c->yancy->backend->schema, "/$name") || (return undef) |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
642 | 21 | 29 | 5 | $config->{'read_schema'} //= !exists $config->{'openapi'} |
650 | 1 | 0 | 4 | $config->{'schema'} || $config->{'read_schema'} |
656 | 48 | 0 | 6 | $config->{'schema'} || $config->{'openapi'}{'definitions'} |
775 | 36 | 16 | 0 | not exists $config->{'editor'} or defined $config->{'editor'} |
792 | 0 | 4 | 0 | not $data or ref $data |