mocks

package
v0.0.0-...-bae6b6e Latest Latest
Warning

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

Go to latest
Published: Dec 6, 2023 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockbotSender

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

MockbotSender is a mock of botSender interface.

func NewMockbotSender

func NewMockbotSender(ctrl *gomock.Controller) *MockbotSender

NewMockbotSender creates a new mock instance.

func (*MockbotSender) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockbotSender) SendMessage

func (m *MockbotSender) SendMessage(ctx context.Context, msg entities.Message) error

SendMessage mocks base method.

type MockbotSenderMockRecorder

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

MockbotSenderMockRecorder is the mock recorder for MockbotSender.

func (*MockbotSenderMockRecorder) SendMessage

func (mr *MockbotSenderMockRecorder) SendMessage(ctx, msg interface{}) *gomock.Call

SendMessage indicates an expected call of SendMessage.

type MockchatGeter

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

MockchatGeter is a mock of chatGeter interface.

func NewMockchatGeter

func NewMockchatGeter(ctrl *gomock.Controller) *MockchatGeter

NewMockchatGeter creates a new mock instance.

func (*MockchatGeter) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockchatGeter) GetChatsByCompanyToken

func (m *MockchatGeter) GetChatsByCompanyToken(ctx context.Context, t string) ([]entities.Chat, error)

GetChatsByCompanyToken mocks base method.

type MockchatGeterMockRecorder

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

MockchatGeterMockRecorder is the mock recorder for MockchatGeter.

func (*MockchatGeterMockRecorder) GetChatsByCompanyToken

func (mr *MockchatGeterMockRecorder) GetChatsByCompanyToken(ctx, t interface{}) *gomock.Call

GetChatsByCompanyToken indicates an expected call of GetChatsByCompanyToken.

type MockchatStorage

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

MockchatStorage is a mock of chatStorage interface.

func NewMockchatStorage

func NewMockchatStorage(ctrl *gomock.Controller) *MockchatStorage

NewMockchatStorage creates a new mock instance.

func (*MockchatStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockchatStorage) GetChatsByCompanyId

func (m *MockchatStorage) GetChatsByCompanyId(ctx context.Context, id int64) ([]entities.Chat, error)

GetChatsByCompanyId mocks base method.

type MockchatStorageMockRecorder

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

MockchatStorageMockRecorder is the mock recorder for MockchatStorage.

func (*MockchatStorageMockRecorder) GetChatsByCompanyId

func (mr *MockchatStorageMockRecorder) GetChatsByCompanyId(ctx, id interface{}) *gomock.Call

GetChatsByCompanyId indicates an expected call of GetChatsByCompanyId.

type MockchatsStorage

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

MockchatsStorage is a mock of chatsStorage interface.

func NewMockchatsStorage

func NewMockchatsStorage(ctrl *gomock.Controller) *MockchatsStorage

NewMockchatsStorage creates a new mock instance.

func (*MockchatsStorage) AddChat

func (m *MockchatsStorage) AddChat(ctx context.Context, chat entities.Chat) (entities.Chat, error)

AddChat mocks base method.

func (*MockchatsStorage) DeleteChatById

func (m *MockchatsStorage) DeleteChatById(ctx context.Context, id int64) error

DeleteChatById mocks base method.

func (*MockchatsStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockchatsStorage) GetChatsByCompanyId

func (m *MockchatsStorage) GetChatsByCompanyId(ctx context.Context, id int64) ([]entities.Chat, error)

GetChatsByCompanyId mocks base method.

type MockchatsStorageMockRecorder

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

MockchatsStorageMockRecorder is the mock recorder for MockchatsStorage.

func (*MockchatsStorageMockRecorder) AddChat

func (mr *MockchatsStorageMockRecorder) AddChat(ctx, chat interface{}) *gomock.Call

AddChat indicates an expected call of AddChat.

func (*MockchatsStorageMockRecorder) DeleteChatById

func (mr *MockchatsStorageMockRecorder) DeleteChatById(ctx, id interface{}) *gomock.Call

DeleteChatById indicates an expected call of DeleteChatById.

func (*MockchatsStorageMockRecorder) GetChatsByCompanyId

func (mr *MockchatsStorageMockRecorder) GetChatsByCompanyId(ctx, id interface{}) *gomock.Call

GetChatsByCompanyId indicates an expected call of GetChatsByCompanyId.

type MockcompanyStorage

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

MockcompanyStorage is a mock of companyStorage interface.

func NewMockcompanyStorage

func NewMockcompanyStorage(ctrl *gomock.Controller) *MockcompanyStorage

NewMockcompanyStorage creates a new mock instance.

func (*MockcompanyStorage) DeleteCompany

func (m *MockcompanyStorage) DeleteCompany(ctx context.Context, companyId int64) error

DeleteCompany mocks base method.

func (*MockcompanyStorage) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockcompanyStorage) GetCompanyByOwnerTelegramId

func (m *MockcompanyStorage) GetCompanyByOwnerTelegramId(ctx context.Context, ownerId int64) (entities.Company, error)

GetCompanyByOwnerTelegramId mocks base method.

func (*MockcompanyStorage) UpdateToken

func (m *MockcompanyStorage) UpdateToken(ctx context.Context, companyId int64, token string) error

UpdateToken mocks base method.

type MockcompanyStorageMockRecorder

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

MockcompanyStorageMockRecorder is the mock recorder for MockcompanyStorage.

func (*MockcompanyStorageMockRecorder) DeleteCompany

func (mr *MockcompanyStorageMockRecorder) DeleteCompany(ctx, companyId interface{}) *gomock.Call

DeleteCompany indicates an expected call of DeleteCompany.

func (*MockcompanyStorageMockRecorder) GetCompanyByOwnerTelegramId

func (mr *MockcompanyStorageMockRecorder) GetCompanyByOwnerTelegramId(ctx, ownerId interface{}) *gomock.Call

GetCompanyByOwnerTelegramId indicates an expected call of GetCompanyByOwnerTelegramId.

func (*MockcompanyStorageMockRecorder) UpdateToken

func (mr *MockcompanyStorageMockRecorder) UpdateToken(ctx, companyId, token interface{}) *gomock.Call

UpdateToken indicates an expected call of UpdateToken.

Jump to

Keyboard shortcuts

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