Branch Coverage

blib/lib/OAuth/Lite2/Server/GrantHandler/Password.pm
Criterion Covered Total %
branch 11 16 68.7


line true false branch
18 1 4 unless $username
22 1 3 unless my $password = $req->param('password')
27 2 1 unless my $user_id = $dh->get_user_id($username, $password)
37 0 1 unless $auth_info and $auth_info->isa('OAuth::Lite2::Model::AuthInfo')
44 0 1 unless $access_token and $access_token->isa('OAuth::Lite2::Model::AccessToken')
52 1 0 if $access_token->expires_in
54 1 0 if $auth_info->refresh_token
56 0 1 if $auth_info->scope