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

Method removeRoleChannel

auth/auth_test.go:1468–1472  ·  view source on GitHub ↗
(t *testing.T, auth *Authenticator, roleName, channelName string, invalSeq uint64)

Source from the content-addressed store, hash-verified

1466}
1467
1468func (m mockComputerV2) removeRoleChannel(t *testing.T, auth *Authenticator, roleName, channelName string, invalSeq uint64) {
1469 delete(m.roleChannels[roleName], channelName)
1470 err := auth.InvalidateDefaultChannels(roleName, false, invalSeq)
1471 assert.NoError(t, err)
1472}
1473
1474func (m mockComputerV2) addRole(t *testing.T, auth *Authenticator, userName, roleName string, invalSeq uint64) {
1475 if _, ok := m.roles[userName]; !ok {

Callers 13

TestRevocationScenario1Function · 0.95
TestRevocationScenario2Function · 0.95
TestRevocationScenario3Function · 0.95
TestRevocationScenario4Function · 0.95
TestRevocationScenario5Function · 0.95
TestRevocationScenario6Function · 0.95
TestRevocationScenario7Function · 0.95
TestRevocationScenario8Function · 0.95
TestRevocationScenario9Function · 0.95
TestRevocationScenario10Function · 0.95
TestRevocationScenario11Function · 0.95
TestRevocationScenario12Function · 0.95

Calls 1

Tested by

no test coverage detected