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

Method ComputeRolesForUser

auth/auth_test.go:1454–1456  ·  view source on GitHub ↗
(ctx context.Context, user User)

Source from the content-addressed store, hash-verified

1452}
1453
1454func (m mockComputerV2) ComputeRolesForUser(ctx context.Context, user User) (ch.TimedSet, error) {
1455 return m.roles[user.Name()].Copy(), nil
1456}
1457
1458func (m mockComputerV2) addRoleChannels(t *testing.T, auth *Authenticator, roleName, channelName string, invalSeq uint64) {
1459 if _, ok := m.roleChannels[roleName]; !ok {

Callers

nothing calls this directly

Calls 2

NameMethod · 0.65
CopyMethod · 0.45

Tested by

no test coverage detected