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 ? :
66 0 0 if $tx->error
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 if $tx->error
100 0 0 unless ($self->{'_ua'})
104 0 0 if ($Mojolicious::VERSION >= 4.5) { }
123 0 0 scalar @$exts && $exts->[0] eq 'json' ? :