Branch Coverage

blib/lib/OAuth/Lite2/Server/GrantHandler/GroupingRefreshToken.pm
Criterion Covered Total %
branch 19 26 73.0


line true false branch
17 0 7 $$header_credentials{'client_id'} ? :
20 1 6 unless my $refresh_token = $req->param('refresh_token')
25 1 5 unless my $grouping_auth_info = $dh->get_auth_info_by_refresh_token($refresh_token)
29 0 5 unless $grouping_auth_info and $grouping_auth_info->isa('OAuth::Lite2::Model::AuthInfo')
33 1 4 unless my $group_id = $dh->get_group_id_by_client_id($grouping_auth_info->client_id)
39 1 3 unless my $target_group_id = $dh->get_group_id_by_client_id($client_id)
44 1 2 unless $group_id eq $target_group_id
49 1 1 unless $dh->validate_grouping_scope($client_id, $scope)
58 0 1 unless $auth_info and $auth_info->isa('OAuth::Lite2::Model::AuthInfo')
65 0 1 unless $access_token and $access_token->isa('OAuth::Lite2::Model::AccessToken')
73 1 0 if $access_token->expires_in
75 1 0 if $auth_info->refresh_token
77 1 0 if $auth_info->scope