mocks

package
v0.0.2 Latest Latest
Warning

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

Go to latest
Published: Aug 1, 2025 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FiltersModeService

type FiltersModeService struct {
	mock.Mock
}

FiltersModeService is an autogenerated mock type for the filtersModeService type

func NewFiltersModeService

func NewFiltersModeService(t interface {
	mock.TestingT
	Cleanup(func())
}) *FiltersModeService

NewFiltersModeService creates a new instance of FiltersModeService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*FiltersModeService) EXPECT

func (*FiltersModeService) Map

func (_m *FiltersModeService) Map(formattedText *client.FormattedText, forwardRule *domain.ForwardRule) string

Map provides a mock function with given fields: formattedText, forwardRule

type FiltersModeService_Expecter

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

func (*FiltersModeService_Expecter) Map

func (_e *FiltersModeService_Expecter) Map(formattedText interface{}, forwardRule interface{}) *FiltersModeService_Map_Call

Map is a helper method to define mock.On call

  • formattedText *client.FormattedText
  • forwardRule *domain.ForwardRule

type FiltersModeService_Map_Call

type FiltersModeService_Map_Call struct {
	*mock.Call
}

FiltersModeService_Map_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Map'

func (*FiltersModeService_Map_Call) Return

func (*FiltersModeService_Map_Call) Run

func (_c *FiltersModeService_Map_Call) Run(run func(formattedText *client.FormattedText, forwardRule *domain.ForwardRule)) *FiltersModeService_Map_Call

func (*FiltersModeService_Map_Call) RunAndReturn

type ForwarderService

type ForwarderService struct {
	mock.Mock
}

ForwarderService is an autogenerated mock type for the forwarderService type

func NewForwarderService

func NewForwarderService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ForwarderService

NewForwarderService creates a new instance of ForwarderService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*ForwarderService) EXPECT

func (*ForwarderService) ForwardMessages

func (_m *ForwarderService) ForwardMessages(messages []*client.Message, filtersMode string, srcChatId int64, dstChatId int64, isSendCopy bool, forwardRuleId string, engineConfig *domain.EngineConfig)

ForwardMessages provides a mock function with given fields: messages, filtersMode, srcChatId, dstChatId, isSendCopy, forwardRuleId, engineConfig

type ForwarderService_Expecter

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

func (*ForwarderService_Expecter) ForwardMessages

func (_e *ForwarderService_Expecter) ForwardMessages(messages interface{}, filtersMode interface{}, srcChatId interface{}, dstChatId interface{}, isSendCopy interface{}, forwardRuleId interface{}, engineConfig interface{}) *ForwarderService_ForwardMessages_Call

ForwardMessages is a helper method to define mock.On call

  • messages []*client.Message
  • filtersMode string
  • srcChatId int64
  • dstChatId int64
  • isSendCopy bool
  • forwardRuleId string
  • engineConfig *domain.EngineConfig

type ForwarderService_ForwardMessages_Call

type ForwarderService_ForwardMessages_Call struct {
	*mock.Call
}

ForwarderService_ForwardMessages_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForwardMessages'

func (*ForwarderService_ForwardMessages_Call) Return

func (*ForwarderService_ForwardMessages_Call) Run

func (_c *ForwarderService_ForwardMessages_Call) Run(run func(messages []*client.Message, filtersMode string, srcChatId int64, dstChatId int64, isSendCopy bool, forwardRuleId string, engineConfig *domain.EngineConfig)) *ForwarderService_ForwardMessages_Call

func (*ForwarderService_ForwardMessages_Call) RunAndReturn

type MessageService

type MessageService struct {
	mock.Mock
}

MessageService is an autogenerated mock type for the messageService type

func NewMessageService

func NewMessageService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MessageService

NewMessageService creates a new instance of MessageService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*MessageService) EXPECT

func (*MessageService) GetFormattedText

func (_m *MessageService) GetFormattedText(message *client.Message) *client.FormattedText

GetFormattedText provides a mock function with given fields: message

func (*MessageService) GetInputMessageContent

func (_m *MessageService) GetInputMessageContent(message *client.Message, formattedText *client.FormattedText) client.InputMessageContent

GetInputMessageContent provides a mock function with given fields: message, formattedText

func (*MessageService) GetReplyMarkupData

func (_m *MessageService) GetReplyMarkupData(message *client.Message) []byte

GetReplyMarkupData provides a mock function with given fields: message

type MessageService_Expecter

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

func (*MessageService_Expecter) GetFormattedText

func (_e *MessageService_Expecter) GetFormattedText(message interface{}) *MessageService_GetFormattedText_Call

GetFormattedText is a helper method to define mock.On call

  • message *client.Message

func (*MessageService_Expecter) GetInputMessageContent

func (_e *MessageService_Expecter) GetInputMessageContent(message interface{}, formattedText interface{}) *MessageService_GetInputMessageContent_Call

GetInputMessageContent is a helper method to define mock.On call

  • message *client.Message
  • formattedText *client.FormattedText

func (*MessageService_Expecter) GetReplyMarkupData

func (_e *MessageService_Expecter) GetReplyMarkupData(message interface{}) *MessageService_GetReplyMarkupData_Call

GetReplyMarkupData is a helper method to define mock.On call

  • message *client.Message

type MessageService_GetFormattedText_Call

type MessageService_GetFormattedText_Call struct {
	*mock.Call
}

MessageService_GetFormattedText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetFormattedText'

func (*MessageService_GetFormattedText_Call) Return

func (*MessageService_GetFormattedText_Call) Run

func (*MessageService_GetFormattedText_Call) RunAndReturn

type MessageService_GetInputMessageContent_Call

type MessageService_GetInputMessageContent_Call struct {
	*mock.Call
}

MessageService_GetInputMessageContent_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetInputMessageContent'

func (*MessageService_GetInputMessageContent_Call) Return

func (*MessageService_GetInputMessageContent_Call) Run

type MessageService_GetReplyMarkupData_Call

type MessageService_GetReplyMarkupData_Call struct {
	*mock.Call
}

MessageService_GetReplyMarkupData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReplyMarkupData'

func (*MessageService_GetReplyMarkupData_Call) Return

func (*MessageService_GetReplyMarkupData_Call) Run

func (*MessageService_GetReplyMarkupData_Call) RunAndReturn

type QueueRepo

type QueueRepo struct {
	mock.Mock
}

QueueRepo is an autogenerated mock type for the queueRepo type

func NewQueueRepo

func NewQueueRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *QueueRepo

NewQueueRepo creates a new instance of QueueRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*QueueRepo) Add

func (_m *QueueRepo) Add(fn func())

Add provides a mock function with given fields: fn

func (*QueueRepo) EXPECT

func (_m *QueueRepo) EXPECT() *QueueRepo_Expecter

type QueueRepo_Add_Call

type QueueRepo_Add_Call struct {
	*mock.Call
}

QueueRepo_Add_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Add'

func (*QueueRepo_Add_Call) Return

func (_c *QueueRepo_Add_Call) Return() *QueueRepo_Add_Call

func (*QueueRepo_Add_Call) Run

func (_c *QueueRepo_Add_Call) Run(run func(fn func())) *QueueRepo_Add_Call

func (*QueueRepo_Add_Call) RunAndReturn

func (_c *QueueRepo_Add_Call) RunAndReturn(run func(func())) *QueueRepo_Add_Call

type QueueRepo_Expecter

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

func (*QueueRepo_Expecter) Add

func (_e *QueueRepo_Expecter) Add(fn interface{}) *QueueRepo_Add_Call

Add is a helper method to define mock.On call

  • fn func()

type StorageService

type StorageService struct {
	mock.Mock
}

StorageService is an autogenerated mock type for the storageService type

func NewStorageService

func NewStorageService(t interface {
	mock.TestingT
	Cleanup(func())
}) *StorageService

NewStorageService creates a new instance of StorageService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*StorageService) DeleteAnswerMessageId

func (_m *StorageService) DeleteAnswerMessageId(dstChatId int64, tmpMessageId int64)

DeleteAnswerMessageId provides a mock function with given fields: dstChatId, tmpMessageId

func (*StorageService) EXPECT

func (*StorageService) GetCopiedMessageIds

func (_m *StorageService) GetCopiedMessageIds(chatId int64, messageId int64) []string

GetCopiedMessageIds provides a mock function with given fields: chatId, messageId

func (*StorageService) GetNewMessageId

func (_m *StorageService) GetNewMessageId(chatId int64, tmpMessageId int64) int64

GetNewMessageId provides a mock function with given fields: chatId, tmpMessageId

func (*StorageService) SetAnswerMessageId

func (_m *StorageService) SetAnswerMessageId(dstChatId int64, tmpMessageId int64, chatId int64, messageId int64)

SetAnswerMessageId provides a mock function with given fields: dstChatId, tmpMessageId, chatId, messageId

type StorageService_DeleteAnswerMessageId_Call

type StorageService_DeleteAnswerMessageId_Call struct {
	*mock.Call
}

StorageService_DeleteAnswerMessageId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DeleteAnswerMessageId'

func (*StorageService_DeleteAnswerMessageId_Call) Return

func (*StorageService_DeleteAnswerMessageId_Call) Run

func (*StorageService_DeleteAnswerMessageId_Call) RunAndReturn

type StorageService_Expecter

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

func (*StorageService_Expecter) DeleteAnswerMessageId

func (_e *StorageService_Expecter) DeleteAnswerMessageId(dstChatId interface{}, tmpMessageId interface{}) *StorageService_DeleteAnswerMessageId_Call

DeleteAnswerMessageId is a helper method to define mock.On call

  • dstChatId int64
  • tmpMessageId int64

func (*StorageService_Expecter) GetCopiedMessageIds

func (_e *StorageService_Expecter) GetCopiedMessageIds(chatId interface{}, messageId interface{}) *StorageService_GetCopiedMessageIds_Call

GetCopiedMessageIds is a helper method to define mock.On call

  • chatId int64
  • messageId int64

func (*StorageService_Expecter) GetNewMessageId

func (_e *StorageService_Expecter) GetNewMessageId(chatId interface{}, tmpMessageId interface{}) *StorageService_GetNewMessageId_Call

GetNewMessageId is a helper method to define mock.On call

  • chatId int64
  • tmpMessageId int64

func (*StorageService_Expecter) SetAnswerMessageId

func (_e *StorageService_Expecter) SetAnswerMessageId(dstChatId interface{}, tmpMessageId interface{}, chatId interface{}, messageId interface{}) *StorageService_SetAnswerMessageId_Call

SetAnswerMessageId is a helper method to define mock.On call

  • dstChatId int64
  • tmpMessageId int64
  • chatId int64
  • messageId int64

type StorageService_GetCopiedMessageIds_Call

type StorageService_GetCopiedMessageIds_Call struct {
	*mock.Call
}

StorageService_GetCopiedMessageIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCopiedMessageIds'

func (*StorageService_GetCopiedMessageIds_Call) Return

func (*StorageService_GetCopiedMessageIds_Call) Run

func (*StorageService_GetCopiedMessageIds_Call) RunAndReturn

type StorageService_GetNewMessageId_Call

type StorageService_GetNewMessageId_Call struct {
	*mock.Call
}

StorageService_GetNewMessageId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNewMessageId'

func (*StorageService_GetNewMessageId_Call) Return

func (*StorageService_GetNewMessageId_Call) Run

func (*StorageService_GetNewMessageId_Call) RunAndReturn

type StorageService_SetAnswerMessageId_Call

type StorageService_SetAnswerMessageId_Call struct {
	*mock.Call
}

StorageService_SetAnswerMessageId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAnswerMessageId'

func (*StorageService_SetAnswerMessageId_Call) Return

func (*StorageService_SetAnswerMessageId_Call) Run

func (_c *StorageService_SetAnswerMessageId_Call) Run(run func(dstChatId int64, tmpMessageId int64, chatId int64, messageId int64)) *StorageService_SetAnswerMessageId_Call

func (*StorageService_SetAnswerMessageId_Call) RunAndReturn

type TelegramRepo

type TelegramRepo struct {
	mock.Mock
}

TelegramRepo is an autogenerated mock type for the telegramRepo type

func NewTelegramRepo

func NewTelegramRepo(t interface {
	mock.TestingT
	Cleanup(func())
}) *TelegramRepo

NewTelegramRepo creates a new instance of TelegramRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TelegramRepo) EXPECT

func (_m *TelegramRepo) EXPECT() *TelegramRepo_Expecter

func (*TelegramRepo) EditMessageCaption

func (_m *TelegramRepo) EditMessageCaption(_a0 *client.EditMessageCaptionRequest) (*client.Message, error)

EditMessageCaption provides a mock function with given fields: _a0

func (*TelegramRepo) EditMessageText

func (_m *TelegramRepo) EditMessageText(_a0 *client.EditMessageTextRequest) (*client.Message, error)

EditMessageText provides a mock function with given fields: _a0

func (*TelegramRepo) GetMessage

func (_m *TelegramRepo) GetMessage(_a0 *client.GetMessageRequest) (*client.Message, error)

GetMessage provides a mock function with given fields: _a0

type TelegramRepo_EditMessageCaption_Call

type TelegramRepo_EditMessageCaption_Call struct {
	*mock.Call
}

TelegramRepo_EditMessageCaption_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditMessageCaption'

func (*TelegramRepo_EditMessageCaption_Call) Return

func (*TelegramRepo_EditMessageCaption_Call) Run

func (*TelegramRepo_EditMessageCaption_Call) RunAndReturn

type TelegramRepo_EditMessageText_Call

type TelegramRepo_EditMessageText_Call struct {
	*mock.Call
}

TelegramRepo_EditMessageText_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'EditMessageText'

func (*TelegramRepo_EditMessageText_Call) Return

func (*TelegramRepo_EditMessageText_Call) Run

func (*TelegramRepo_EditMessageText_Call) RunAndReturn

type TelegramRepo_Expecter

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

func (*TelegramRepo_Expecter) EditMessageCaption

func (_e *TelegramRepo_Expecter) EditMessageCaption(_a0 interface{}) *TelegramRepo_EditMessageCaption_Call

EditMessageCaption is a helper method to define mock.On call

  • _a0 *client.EditMessageCaptionRequest

func (*TelegramRepo_Expecter) EditMessageText

func (_e *TelegramRepo_Expecter) EditMessageText(_a0 interface{}) *TelegramRepo_EditMessageText_Call

EditMessageText is a helper method to define mock.On call

  • _a0 *client.EditMessageTextRequest

func (*TelegramRepo_Expecter) GetMessage

func (_e *TelegramRepo_Expecter) GetMessage(_a0 interface{}) *TelegramRepo_GetMessage_Call

GetMessage is a helper method to define mock.On call

  • _a0 *client.GetMessageRequest

type TelegramRepo_GetMessage_Call

type TelegramRepo_GetMessage_Call struct {
	*mock.Call
}

TelegramRepo_GetMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMessage'

func (*TelegramRepo_GetMessage_Call) Return

func (*TelegramRepo_GetMessage_Call) Run

func (*TelegramRepo_GetMessage_Call) RunAndReturn

type TransformService

type TransformService struct {
	mock.Mock
}

TransformService is an autogenerated mock type for the transformService type

func NewTransformService

func NewTransformService(t interface {
	mock.TestingT
	Cleanup(func())
}) *TransformService

NewTransformService creates a new instance of TransformService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TransformService) EXPECT

func (*TransformService) Transform

func (_m *TransformService) Transform(formattedText *client.FormattedText, withSources bool, src *client.Message, dstChatId int64, engineConfig *domain.EngineConfig)

Transform provides a mock function with given fields: formattedText, withSources, src, dstChatId, engineConfig

type TransformService_Expecter

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

func (*TransformService_Expecter) Transform

func (_e *TransformService_Expecter) Transform(formattedText interface{}, withSources interface{}, src interface{}, dstChatId interface{}, engineConfig interface{}) *TransformService_Transform_Call

Transform is a helper method to define mock.On call

  • formattedText *client.FormattedText
  • withSources bool
  • src *client.Message
  • dstChatId int64
  • engineConfig *domain.EngineConfig

type TransformService_Transform_Call

type TransformService_Transform_Call struct {
	*mock.Call
}

TransformService_Transform_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Transform'

func (*TransformService_Transform_Call) Return

func (*TransformService_Transform_Call) Run

func (_c *TransformService_Transform_Call) Run(run func(formattedText *client.FormattedText, withSources bool, src *client.Message, dstChatId int64, engineConfig *domain.EngineConfig)) *TransformService_Transform_Call

func (*TransformService_Transform_Call) RunAndReturn

Jump to

Keyboard shortcuts

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