Branch Coverage

blib/lib/Mojolicious/Plugin/Web/Auth/OAuth2.pm
Criterion Covered Total %
branch 0 42 0.0


line true false branch
17 0 0 unless $callback_uri
22 0 0 if defined $self->scope
23 0 0 if defined $self->response_type
25 0 0 if ($self->validate_state)
26 0 0 $self->state_generator ? :
37 0 0 if (my $error = $c->req->param('error'))
41 0 0 unless my $code = $c->param('code')
43 0 0 if defined $forwarded_proto and $forwarded_proto eq 'https'
45 0 0 if ($self->validate_state)
47 0 0 if ($state ne $c->param('state'))
60 0 0 $Mojolicious::VERSION >= 3.85 ? :
64 0 0 unless (my $res = $tx->success)
69 0 0 if (my $err = delete $dat->{'error'})
74 0 0 unless my $access_token = delete $dat->{'access_token'}
77 0 0 if ($self->user_info) { }
79 0 0 unless defined $self->authorize_header
80 0 0 defined $self->authorize_header ? :
85 0 0 unless my $res = $tx->success
99 0 0 unless ($self->{'_ua'})
103 0 0 if ($Mojolicious::VERSION >= 4.5) { }
119 0 0 $res->headers->content_type =~ m[^application/json[;]?] ? :