Branch Coverage

blib/lib/OAuth/Lite2/Server/GrantHandler/Password.pm
Criterion Covered Total %
branch 12 18 66.6


line true false branch
18 0 5 $$header_credentials{'client_id'} ? :
21 1 4 unless $username
25 1 3 unless my $password = $req->param('password')
30 2 1 unless my $user_id = $dh->get_user_id($username, $password)
40 0 1 unless $auth_info and $auth_info->isa('OAuth::Lite2::Model::AuthInfo')
47 0 1 unless $access_token and $access_token->isa('OAuth::Lite2::Model::AccessToken')
55 1 0 if $access_token->expires_in
57 1 0 if $auth_info->refresh_token
59 0 1 if $auth_info->scope