(t *testing.T, auth *Authenticator, roleName, channelName string, invalSeq uint64)
| 1466 | } |
| 1467 | |
| 1468 | func (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 | |
| 1474 | func (m mockComputerV2) addRole(t *testing.T, auth *Authenticator, userName, roleName string, invalSeq uint64) { |
| 1475 | if _, ok := m.roles[userName]; !ok { |
no test coverage detected