blib/lib/Mojolicious/Plugin/OpenAPI/Security.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 11 | 16 | 68.7 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
24 | 24 | 2 | 2 | $c->req->method eq "OPTIONS" and $c->match->stack->[-1]{'openapi.default_options'} |
line | l | !l | condition |
---|---|---|---|
19 | 3 | 0 | $openapi->validator->get('/security') || [] |
26 | 26 | 0 | $c->openapi->spec || {} |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
47 | 7 | 0 | 6 | $sync_mode or $c->continue |
59 | 1 | 10 | 0 | $c->stash('status') || $status |
82 | 0 | 21 | 17 | $res{$name} //= $_[1] |