Branch Coverage

blib/lib/Catalyst/Authentication/Credential/OAuth2.pm
Criterion Covered Total %
branch 12 26 46.1


line true false branch
43 2 2 if (defined(my $code = $ctx->request->params->{'code'})) { }
51 0 2 unless $token
54 0 2 if ($self->has_extra_find_user_token_fields)
76 0 3 if exists $auth_info->{'state'}
77 0 3 if $self->has_scope
78 0 3 if exists $auth_info->{'scope'}
94 0 2 if exists $auth_info->{'state'}
95 1 1 if $self->has_client_secret
98 2 0 if ($self->token_uri_method eq 'GET') { }
0 0 elsif ($self->token_uri_method eq 'POST') { }
102 0 0 if ($self->token_uri_post_content_type eq 'application/json') { }
0 0 elsif ($self->token_uri_post_content_type eq 'application/x-www-form-urlencoded') { }
114 2 0 if ($response->is_success) { }