Branch Coverage

blib/lib/Mojolicious/Plugin/OAuth2/Mock.pm
Criterion Covered Total %
branch 9 14 64.2


line true false branch
23 0 2 ref $_[0] ? :
26 2 0 if $provider
31 8 15 unless $k =~ /^([a-z].+)_url$/u
42 1 2 if ($c->param("response_mode") eq "form_post")
61 1 0 if ($c->param('client_id') and $c->param('redirect_uri')) { }
104 0 1 unless 3 == grep({$c->param($_);} "client_secret", "redirect_uri", "code")
119 0 2 unless $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")