blib/lib/Yancy/Plugin/Auth/OAuth2.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 8 | 13 | 61.5 |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
258 | 0 | 4 | 2 | $to and $to =~ m[^(?:\w+:|//)]u |
line | l | !l | condition |
---|---|---|---|
188 | 0 | 0 | $c->session->{'yancy'}{$self->moniker}{'access_token'} || undef |
310 | 4 | 2 | ($c->param("redirect_to") // $c->req->headers->referrer) // "/" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
258 | 4 | 0 | 0 | $to || $c->req->headers->referrer =~ m[^(?:\w+:|//)]u |
310 | 2 | 2 | 2 | $c->param("redirect_to") // $c->req->headers->referrer |