blib/lib/Mojolicious/Plugin/OAuth2.pm | |||
---|---|---|---|
Criterion | Covered | Total | % |
condition | 23 | 36 | 63.8 |
line | l | !l | condition |
---|---|---|---|
211 | 4 | 1 | @p && 'Mojo::Promise'->all(@p)->wait |
line | !l | l&&!r | l&&r | condition |
---|---|---|---|---|
173 | 3 | 0 | 0 | ref $_[-1] eq 'CODE' && pop() |
line | l | !l | condition |
---|---|---|---|
103 | 25 | 1 | $provider || 'unknown' |
112 | 3 | 2 | $self->providers->{$provider} ||= {} |
150 | 1 | 6 | $args->{'redirect'} // 1 |
192 | 8 | 0 | $tx->res->code || 'No response' |
225 | 0 | 1 | $provider->{'scope'} //= "openid" |
line | l | !l&&r | !l&&!r | condition |
---|---|---|---|---|
79 | 2 | 0 | 0 | $self->_ua->server->app || 'Mojolicious'->new |
89 | 1 | 5 | 2 | $args->{'scope'} ||= $provider_args->{'scope'} |
90 | 4 | 4 | 0 | $args->{'redirect_uri'} ||= $c->url_for->to_abs->to_string |
123 | 0 | 1 | 2 | $c->param('error_description') || $c->param('error') |
145 | 0 | 2 | 13 | $c->param('error_description') || $c->param('error') |
161 | 3 | 3 | 0 | $args->{'redirect_uri'} || $c->url_for->to_abs->to_string |
195 | 0 | 0 | 0 | $tx->error->{'message'} // $code |