MCPcopy Create free account
hub / github.com/couchbase/sync_gateway / TestUserAuthenticateWithNilUserReference

Function TestUserAuthenticateWithNilUserReference

auth/user_test.go:321–324  ·  view source on GitHub ↗

Needless to say; must not authenticate with nil user reference;

(t *testing.T)

Source from the content-addressed store, hash-verified

319
320// Needless to say; must not authenticate with nil user reference;
321func TestUserAuthenticateWithNilUserReference(t *testing.T) {
322 var nouser *userImpl
323 assert.False(t, nouser.Authenticate("password"))
324}
325
326// Must not authenticate if the user account is disabled.
327func TestUserAuthenticateWithDisabledUserAccount(t *testing.T) {

Callers

nothing calls this directly

Calls 1

AuthenticateMethod · 0.95

Tested by

no test coverage detected