File Coverage

blib/lib/Net/OAuth2Server/Request/Token/RefreshToken.pm
Criterion Covered Total %
statement 9 15 60.0
branch 0 2 0.0
condition n/a
subroutine 3 7 42.8
pod 0 4 0.0
total 12 28 42.8


line stmt bran cond sub pod time code
1 1     1   439 use strict; use warnings;
  1     1   2  
  1         28  
  1         5  
  1         2  
  1         36  
2              
3             package Net::OAuth2Server::Request::Token::RefreshToken;
4 1     1   5 use parent 'Net::OAuth2Server::Request';
  1         2  
  1         4  
5              
6 0     0 0   sub grant_type { 'refresh_token' }
7 0     0 0   sub allowed_methods { 'POST' }
8 0     0 0   sub grant_parameters { qw( refresh_token client_id client_secret ) }
9             *required_parameters = \&grant_parameters;
10              
11             sub get_grant {
12 0     0 0   my ( $self, $grant_maker ) = ( shift, shift );
13 0 0         return if $self->error;
14 0           $grant_maker->from_refresh_token( $self, $self->params( $self->grant_parameters ), @_ );
15             }
16              
17             our $VERSION = '0.005';