Branch Coverage

blib/lib/Net/OAuth2/AuthorizationServer/ImplicitGrant.pm
Criterion Covered Total %
branch 20 22 90.9


line true false branch
105 2 10 if (not $self->_has_clients || ($args->{'verify_client_cb'} || $args->{'store_access_token_cb'} || $args->{'verify_access_token_cb'}))
125 28 4 if (my $client = $self->clients->{$client_id})
129 4 60 if (not exists $self->clients->{$client_id}{'scopes'}{$scope}) { }
56 4 elsif ($self->clients->{$client_id}{'scopes'}{$scope}) { }
137 8 4 if ($self->clients->{$client_id}{'redirect_uri'} and !$redirect_uri || $redirect_uri ne $self->clients->{$client_id}{'redirect_uri'})
148 4 12 if ($self->clients->{$client_id}{'client_secret'})
166 20 20 if $self->jwt_secret
171 12 8 if (exists $self->access_tokens->{$a_token})
173 0 12 if ($self->access_tokens->{$a_token}{'expires'} <= time) { }
12 0 elsif ($scopes_ref) { }
181 4 16 unless $self->_has_scope($scope, $self->access_tokens->{$a_token}{'scope'})