(t testing.TB, dataStore sgbucket.DataStore, channelComputer ChannelComputer, opts AuthenticatorOptions)
| 28 | ) |
| 29 | |
| 30 | func 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. |
| 36 | func requireCanSeeChannels(t *testing.T, princ Principal, channels ...string) { |
no test coverage detected