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

Function NewTestAuthenticator

auth/auth_test.go:30–33  ·  view source on GitHub ↗
(t testing.TB, dataStore sgbucket.DataStore, channelComputer ChannelComputer, opts AuthenticatorOptions)

Source from the content-addressed store, hash-verified

28)
29
30func NewTestAuthenticator(t testing.TB, dataStore sgbucket.DataStore, channelComputer ChannelComputer, opts AuthenticatorOptions) *Authenticator {
31 opts.BcryptCost = bcrypt.MinCost // lower cost for testing speedup
32 return NewAuthenticator(dataStore, channelComputer, opts)
33}
34
35// requireCanSeeChannels asserts that the given principal can see all of the specified channels.
36func requireCanSeeChannels(t *testing.T, princ Principal, channels ...string) {

Calls 1

NewAuthenticatorFunction · 0.85

Tested by

no test coverage detected