Condition Coverage

blib/lib/Net/OAuth2/AuthorizationServer/Defaults.pm
Criterion Covered Total %
condition 22 39 56.4


and 3 conditions

line !l l&&!r l&&r condition
195 2 6 0 not defined $auth_code and $old_refresh_token
246 18 4 8 $is_refresh_token and exists $self->refresh_tokens->{$a_token}
306 0 12 24 $access_token_payload and $access_token_payload->{'type'} eq 'access' || $is_refresh_token && $access_token_payload->{'type'} eq 'refresh'
345 12 19 0 not $self->_uses_auth_codes and $type eq 'auth'

or 2 conditions

line l !l condition
70 25 0 (shift())->clients // {}
154 8 0 $args{'scopes'} // []
163 16 0 $client_id // ''
166 12 0 $scopes_ref // []
215 4 4 $refresh_token // undef
251 8 0 $scopes_ref // []
267 16 0 $scopes_ref // []
282 120 0 $available_scopes // []
314 36 0 $scopes_ref // []

or 3 conditions

line l !l&&r !l&&!r condition
188 0 16 0 $expires_in //= $self->get_access_token_ttl('scopes', $scope, 'client_id', $c_id)
207 0 0 0 $scope //= $self->refresh_tokens->{$old_refresh_token}{'scope'}
306 28 8 0 $access_token_payload->{'type'} eq 'access' || $is_refresh_token && $access_token_payload->{'type'} eq 'refresh'