butler/internal/modules/messenger/mocks/interface.go

66 lines
2.0 KiB
Go

// Code generated by MockGen. DO NOT EDIT.
// Source: interface.go
// Package mocks is a generated GoMock package.
package mocks
import (
context "context"
reflect "reflect"
messenger "git.3crabs.ru/VLADIMIR/butler/internal/modules/messenger"
gomock "go.uber.org/mock/gomock"
)
// MockIMessenger is a mock of IMessenger interface.
type MockIMessenger struct {
ctrl *gomock.Controller
recorder *MockIMessengerMockRecorder
}
// MockIMessengerMockRecorder is the mock recorder for MockIMessenger.
type MockIMessengerMockRecorder struct {
mock *MockIMessenger
}
// NewMockIMessenger creates a new mock instance.
func NewMockIMessenger(ctrl *gomock.Controller) *MockIMessenger {
mock := &MockIMessenger{ctrl: ctrl}
mock.recorder = &MockIMessengerMockRecorder{mock}
return mock
}
// EXPECT returns an object that allows the caller to indicate expected use.
func (m *MockIMessenger) EXPECT() *MockIMessengerMockRecorder {
return m.recorder
}
// GetMessage mocks base method.
func (m *MockIMessenger) GetMessage(ctx context.Context) (*messenger.Message, error) {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "GetMessage", ctx)
ret0, _ := ret[0].(*messenger.Message)
ret1, _ := ret[1].(error)
return ret0, ret1
}
// GetMessage indicates an expected call of GetMessage.
func (mr *MockIMessengerMockRecorder) GetMessage(ctx interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "GetMessage", reflect.TypeOf((*MockIMessenger)(nil).GetMessage), ctx)
}
// SendMessage mocks base method.
func (m *MockIMessenger) SendMessage(ctx context.Context, msg *messenger.Message) error {
m.ctrl.T.Helper()
ret := m.ctrl.Call(m, "SendMessage", ctx, msg)
ret0, _ := ret[0].(error)
return ret0
}
// SendMessage indicates an expected call of SendMessage.
func (mr *MockIMessengerMockRecorder) SendMessage(ctx, msg interface{}) *gomock.Call {
mr.mock.ctrl.T.Helper()
return mr.mock.ctrl.RecordCallWithMethodType(mr.mock, "SendMessage", reflect.TypeOf((*MockIMessenger)(nil).SendMessage), ctx, msg)
}