Condition Coverage

blib/lib/Mojolicious/Plugin/OAuth2/Mock.pm
Criterion Covered Total %
condition 12 21 57.1


and 3 conditions

line !l l&&!r l&&r condition
61 0 0 1 $c->param("client_id") and $c->param("redirect_uri")
119 0 2 3 $c->param("client_secret") and $c->param("redirect_uri")
2 0 3 $c->param("client_secret") and $c->param("redirect_uri") and $c->param("code")
0 0 2 $c->param("grant_type") eq "refresh_token" and $c->param("refresh_token")

or 2 conditions

line l !l condition
6 0 2 $ENV{'MOJO_OAUTH2_DEBUG'} || 0
111 0 1 $self->provider->{'scopes'} || 'some list of scopes'
141 2 3 $c->param("refresh_token") // "refresh-token"

or 3 conditions

line l !l&&r !l&&!r condition
119 3 2 0 $c->param("client_secret") and $c->param("redirect_uri") and $c->param("code") or $c->param("grant_type") eq "refresh_token" and $c->param("refresh_token")