Documentation
¶
Index ¶
- type MockBot
- func (_m *MockBot) EXPECT() *_MockBotRecorder
- func (_m *MockBot) Excuse(_param0 interfaces.Message, _param1 error)
- func (_m *MockBot) GetConfig() *confer.Config
- func (_m *MockBot) GetGonduit() (*gonduit.Conn, error)
- func (_m *MockBot) GetHandlers() []interfaces.HandlerTuple
- func (_m *MockBot) GetIMHandlers() []interfaces.HandlerTuple
- func (_m *MockBot) GetModules() []interfaces.Module
- func (_m *MockBot) GetUsageHandler() interfaces.Handler
- func (_m *MockBot) GetUsername(_param0 string) (string, error)
- func (_m *MockBot) Post(_param0 string, _param1 string, _param2 messages.Icon, _param3 bool)
- func (_m *MockBot) PostImage(_param0 string, _param1 string, _param2 string, _param3 messages.Icon, ...)
- func (_m *MockBot) PostOnFeed(_param0 string) error
- func (_m *MockBot) StartTyping(_param0 string)
- type MockHandlerTuple
- type MockMessage
- func (_m *MockMessage) EXPECT() *_MockMessageRecorder
- func (_m *MockMessage) GetChannel() string
- func (_m *MockMessage) GetContent() string
- func (_m *MockMessage) GetProviderName() string
- func (_m *MockMessage) GetUserID() string
- func (_m *MockMessage) IsIM() bool
- func (_m *MockMessage) IsSelf() bool
- type MockModule
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockBot ¶
type MockBot struct {
// contains filtered or unexported fields
}
Mock of Bot interface
func NewMockBot ¶
func NewMockBot(ctrl *gomock.Controller) *MockBot
func (*MockBot) GetHandlers ¶
func (_m *MockBot) GetHandlers() []interfaces.HandlerTuple
func (*MockBot) GetIMHandlers ¶
func (_m *MockBot) GetIMHandlers() []interfaces.HandlerTuple
func (*MockBot) GetModules ¶
func (_m *MockBot) GetModules() []interfaces.Module
func (*MockBot) GetUsageHandler ¶
func (_m *MockBot) GetUsageHandler() interfaces.Handler
func (*MockBot) PostOnFeed ¶
func (*MockBot) StartTyping ¶
type MockHandlerTuple ¶
type MockHandlerTuple struct {
// contains filtered or unexported fields
}
Mock of HandlerTuple interface
func NewMockHandlerTuple ¶
func NewMockHandlerTuple(ctrl *gomock.Controller) *MockHandlerTuple
func (*MockHandlerTuple) EXPECT ¶
func (_m *MockHandlerTuple) EXPECT() *_MockHandlerTupleRecorder
func (*MockHandlerTuple) GetHandler ¶
func (_m *MockHandlerTuple) GetHandler() interfaces.Handler
func (*MockHandlerTuple) GetPattern ¶
func (_m *MockHandlerTuple) GetPattern() *regexp.Regexp
type MockMessage ¶
type MockMessage struct {
// contains filtered or unexported fields
}
Mock of Message interface
func NewMockMessage ¶
func NewMockMessage(ctrl *gomock.Controller) *MockMessage
func (*MockMessage) EXPECT ¶
func (_m *MockMessage) EXPECT() *_MockMessageRecorder
func (*MockMessage) GetChannel ¶
func (_m *MockMessage) GetChannel() string
func (*MockMessage) GetContent ¶
func (_m *MockMessage) GetContent() string
func (*MockMessage) GetProviderName ¶
func (_m *MockMessage) GetProviderName() string
func (*MockMessage) GetUserID ¶
func (_m *MockMessage) GetUserID() string
func (*MockMessage) IsIM ¶
func (_m *MockMessage) IsIM() bool
func (*MockMessage) IsSelf ¶
func (_m *MockMessage) IsSelf() bool
type MockModule ¶
type MockModule struct {
// contains filtered or unexported fields
}
Mock of Module interface
func NewMockModule ¶
func NewMockModule(ctrl *gomock.Controller) *MockModule
func (*MockModule) EXPECT ¶
func (_m *MockModule) EXPECT() *_MockModuleRecorder
func (*MockModule) GetCommands ¶
func (_m *MockModule) GetCommands() []interfaces.Command
func (*MockModule) GetName ¶
func (_m *MockModule) GetName() string
Click to show internal directories.
Click to hide internal directories.