Condition Coverage

blib/lib/Yancy/Plugin/Auth/OAuth2.pm
Criterion Covered Total %
condition 8 13 61.5


and 3 conditions

line !l l&&!r l&&r condition
258 0 4 2 $to and $to =~ m[^(?:\w+:|//)]u

or 2 conditions

line l !l condition
188 0 0 $c->session->{'yancy'}{$self->moniker}{'access_token'} || undef
310 4 2 ($c->param("redirect_to") // $c->req->headers->referrer) // "/"

or 3 conditions

line l !l&&r !l&&!r condition
258 4 0 0 $to || $c->req->headers->referrer =~ m[^(?:\w+:|//)]u
310 2 2 2 $c->param("redirect_to") // $c->req->headers->referrer