Branch Coverage

blib/lib/Net/OAuth2/AuthorizationServer/AuthorizationCodeGrant.pm
Criterion Covered Total %
branch 14 14 100.0


line true false branch
162 1 5 if (not $self->_has_clients || ($args->{'verify_client_cb'} || $args->{'store_auth_code_cb'} || $args->{'verify_auth_code_cb'} || $args->{'store_access_token_cb'} || $args->{'verify_access_token_cb'}))
192 2 2 if $self->jwt_secret
215 8 10 if $self->jwt_secret
219 8 2 if (not exists $self->auth_codes->{$auth_code} && exists $self->clients->{$client_id} or $client_secret ne $self->clients->{$client_id}{'client_secret'} or $self->auth_codes->{$auth_code}{'access_token'} or $uri and $self->auth_codes->{$auth_code}{'redirect_uri'} ne $uri or $self->auth_codes->{$auth_code}{'expires'} <= time) { }
227 2 6 if (my $access_token = $self->auth_codes->{$auth_code}{'access_token'})
252 2 6 if $client_secret ne $client->{'client_secret'}
268 2 2 if (not $auth_code_payload or $invalid_jwt or $auth_code_payload->{'type'} ne 'auth' or $auth_code_payload->{'client'} ne $client_id or $uri and $auth_code_payload->{'aud'} ne $uri)