Condition Coverage

blib/lib/Net/OAuth2/AuthorizationServer/PasswordGrant.pm
Criterion Covered Total %
condition 12 16 75.0


and 3 conditions

line !l l&&!r l&&r condition
173 0 4 12 exists $self->clients->{$client_id} && exists $self->users->{$username}

or 2 conditions

line l !l condition
137 1 0 (shift())->users // {}
170 16 4 $self->clients->{$client_id} || (return 0, 'unauthorized_client')

or 3 conditions

line l !l&&r !l&&!r condition
142 0 0 1 $self->_has_clients || $self->_has_users || ($args->{'verify_client_cb'} || $args->{'verify_user_password_cb'} || $args->{'store_access_token_cb'} || $args->{'verify_access_token_cb'})
173 4 4 8 not exists $self->clients->{$client_id} && exists $self->users->{$username} or $client_secret ne $self->clients->{$client_id}{'client_secret'}
8 4 4 not exists $self->clients->{$client_id} && exists $self->users->{$username} or $client_secret ne $self->clients->{$client_id}{'client_secret'} or $password ne $self->users->{$username}