Branch Coverage

blib/lib/Yancy/Plugin/Auth/OAuth2.pm
Criterion Covered Total %
branch 11 14 78.5


line true false branch
160 10 10 unless $config->{$attr}
164 2 6 unless $config->{$url_attr}
223 4 6 if (my $code = $c->param("code"))
258 2 4 if ($to and $to =~ m[^(?:\w+:|//)]u) { }
0 4 elsif (not $to || $c->req->headers->referrer =~ m[^(?:\w+:|//)]u) { }
0 4 elsif (not $to) { }
311 0 6 if ($redirect_to eq $c->req->url->path)