mocks

package
v1.3.4 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockClient

type MockClient struct {
	// contains filtered or unexported fields
}

Mock of Client interface

func NewMockClient

func NewMockClient(ctrl *gomock.Controller) *MockClient

func (*MockClient) EXPECT

func (_m *MockClient) EXPECT() *_MockClientRecorder

func (*MockClient) GetAllMembers

func (_m *MockClient) GetAllMembers(guildID string, after string, limit int) ([]*discordgo.Member, error)

func (*MockClient) GetAllRoles

func (_m *MockClient) GetAllRoles(guildID string) ([]*discordgo.Role, error)

func (*MockClient) GetUser

func (_m *MockClient) GetUser(userID string) (*discordgo.User, error)

func (*MockClient) RemoveMemberRole

func (_m *MockClient) RemoveMemberRole(guildID string, userID string, role string) error

func (*MockClient) UpdateMember

func (_m *MockClient) UpdateMember(guildID string, userID string, roles []string) error

type MockClientFactory

type MockClientFactory struct {
	// contains filtered or unexported fields
}

Mock of ClientFactory interface

func NewMockClientFactory

func NewMockClientFactory(ctrl *gomock.Controller) *MockClientFactory

func (*MockClientFactory) EXPECT

func (_m *MockClientFactory) EXPECT() *_MockClientFactoryRecorder

type MockRoleMap

type MockRoleMap struct {
	// contains filtered or unexported fields
}

Mock of RoleMap interface

func NewMockRoleMap

func NewMockRoleMap(ctrl *gomock.Controller) *MockRoleMap

func (*MockRoleMap) EXPECT

func (_m *MockRoleMap) EXPECT() *_MockRoleMapRecorder

func (*MockRoleMap) GetRoleId

func (_m *MockRoleMap) GetRoleId(roleName string) string

func (*MockRoleMap) GetRoleName

func (_m *MockRoleMap) GetRoleName(roleId string) string

func (*MockRoleMap) GetRoles

func (_m *MockRoleMap) GetRoles() map[string]*discordgo.Role

func (*MockRoleMap) UpdateRoles

func (_m *MockRoleMap) UpdateRoles() error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL