Branch Coverage

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


line true false branch
18 0 0 unless $callback_uri
23 0 0 if defined $self->scope
24 0 0 if defined $self->response_type
26 0 0 if ($self->validate_state)
27 0 0 $self->state_generator ? :
38 0 0 if (my $error = $c->req->param('error'))
42 0 0 unless my $code = $c->param('code')
44 0 0 if defined $forwarded_proto and $forwarded_proto eq 'https'
46 0 0 if ($self->validate_state)
48 0 0 if ($state ne $c->param('state'))
61 0 0 $Mojolicious::VERSION >= 3.85 ? :
65 0 0 unless (my $res = $tx->result->is_success)
70 0 0 if (my $err = delete $dat->{'error'})
75 0 0 unless my $access_token = delete $dat->{'access_token'}
78 0 0 if ($self->user_info) { }
80 0 0 unless defined $self->authorize_header
81 0 0 defined $self->authorize_header ? :
86 0 0 unless my $res = $tx->result->is_success
100 0 0 unless ($self->{'_ua'})
104 0 0 if ($Mojolicious::VERSION >= 4.5) { }
123 0 0 scalar @$exts && $exts->[0] eq 'json' ? :