Condition Coverage

blib/lib/Mojolicious/Plugin/OAuth2.pm
Criterion Covered Total %
condition 23 36 63.8


and 2 conditions

line l !l condition
204 4 1 @p && 'Mojo::Promise'->all(@p)->wait

and 3 conditions

line !l l&&!r l&&r condition
166 3 0 0 ref $_[-1] eq 'CODE' && pop()

or 2 conditions

line l !l condition
96 25 1 $provider || 'unknown'
105 3 2 $self->providers->{$provider} ||= {}
143 1 6 $args->{'redirect'} // 1
185 8 0 $tx->res->code || 'No response'
218 0 1 $provider->{'scope'} //= "openid"

or 3 conditions

line l !l&&r !l&&!r condition
72 2 0 0 $self->_ua->server->app || 'Mojolicious'->new
82 1 5 2 $args->{'scope'} ||= $provider_args->{'scope'}
83 4 4 0 $args->{'redirect_uri'} ||= $c->url_for->to_abs->to_string
116 0 1 2 $c->param('error_description') || $c->param('error')
138 0 2 13 $c->param('error_description') || $c->param('error')
154 3 3 0 $args->{'redirect_uri'} || $c->url_for->to_abs->to_string
188 0 0 0 $tx->error->{'message'} // $code