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: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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 RateLimiterService

type RateLimiterService struct {
	mock.Mock
}

RateLimiterService is an autogenerated mock type for the rateLimiterService type

func NewRateLimiterService

func NewRateLimiterService(t interface {
	mock.TestingT
	Cleanup(func())
}) *RateLimiterService

NewRateLimiterService creates a new instance of RateLimiterService. 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 (*RateLimiterService) EXPECT

func (*RateLimiterService) WaitForForward

func (_m *RateLimiterService) WaitForForward(ctx context.Context, dstChatId int64)

WaitForForward provides a mock function with given fields: ctx, dstChatId

type RateLimiterService_Expecter

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

func (*RateLimiterService_Expecter) WaitForForward

func (_e *RateLimiterService_Expecter) WaitForForward(ctx interface{}, dstChatId interface{}) *RateLimiterService_WaitForForward_Call

WaitForForward is a helper method to define mock.On call

  • ctx context.Context
  • dstChatId int64

type RateLimiterService_WaitForForward_Call

type RateLimiterService_WaitForForward_Call struct {
	*mock.Call
}

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

func (*RateLimiterService_WaitForForward_Call) Return

func (*RateLimiterService_WaitForForward_Call) Run

func (*RateLimiterService_WaitForForward_Call) RunAndReturn

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) 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

func (*StorageService) SetCopiedMessageId

func (_m *StorageService) SetCopiedMessageId(chatId int64, messageId int64, toChatMessageId string)

SetCopiedMessageId provides a mock function with given fields: chatId, messageId, toChatMessageId

type StorageService_Expecter

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

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

func (*StorageService_Expecter) SetCopiedMessageId

func (_e *StorageService_Expecter) SetCopiedMessageId(chatId interface{}, messageId interface{}, toChatMessageId interface{}) *StorageService_SetCopiedMessageId_Call

SetCopiedMessageId is a helper method to define mock.On call

  • chatId int64
  • messageId int64
  • toChatMessageId string

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 StorageService_SetCopiedMessageId_Call

type StorageService_SetCopiedMessageId_Call struct {
	*mock.Call
}

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

func (*StorageService_SetCopiedMessageId_Call) Return

func (*StorageService_SetCopiedMessageId_Call) Run

func (_c *StorageService_SetCopiedMessageId_Call) Run(run func(chatId int64, messageId int64, toChatMessageId string)) *StorageService_SetCopiedMessageId_Call

func (*StorageService_SetCopiedMessageId_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) ForwardMessages

func (_m *TelegramRepo) ForwardMessages(_a0 *client.ForwardMessagesRequest) (*client.Messages, error)

ForwardMessages 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

func (*TelegramRepo) SendMessage

func (_m *TelegramRepo) SendMessage(_a0 *client.SendMessageRequest) (*client.Message, error)

SendMessage provides a mock function with given fields: _a0

func (*TelegramRepo) SendMessageAlbum

func (_m *TelegramRepo) SendMessageAlbum(_a0 *client.SendMessageAlbumRequest) (*client.Messages, error)

SendMessageAlbum provides a mock function with given fields: _a0

type TelegramRepo_Expecter

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

func (*TelegramRepo_Expecter) ForwardMessages

func (_e *TelegramRepo_Expecter) ForwardMessages(_a0 interface{}) *TelegramRepo_ForwardMessages_Call

ForwardMessages is a helper method to define mock.On call

  • _a0 *client.ForwardMessagesRequest

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

func (*TelegramRepo_Expecter) SendMessage

func (_e *TelegramRepo_Expecter) SendMessage(_a0 interface{}) *TelegramRepo_SendMessage_Call

SendMessage is a helper method to define mock.On call

  • _a0 *client.SendMessageRequest

func (*TelegramRepo_Expecter) SendMessageAlbum

func (_e *TelegramRepo_Expecter) SendMessageAlbum(_a0 interface{}) *TelegramRepo_SendMessageAlbum_Call

SendMessageAlbum is a helper method to define mock.On call

  • _a0 *client.SendMessageAlbumRequest

type TelegramRepo_ForwardMessages_Call

type TelegramRepo_ForwardMessages_Call struct {
	*mock.Call
}

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

func (*TelegramRepo_ForwardMessages_Call) Return

func (*TelegramRepo_ForwardMessages_Call) Run

func (*TelegramRepo_ForwardMessages_Call) RunAndReturn

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 TelegramRepo_SendMessageAlbum_Call

type TelegramRepo_SendMessageAlbum_Call struct {
	*mock.Call
}

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

func (*TelegramRepo_SendMessageAlbum_Call) Return

func (*TelegramRepo_SendMessageAlbum_Call) Run

func (*TelegramRepo_SendMessageAlbum_Call) RunAndReturn

type TelegramRepo_SendMessage_Call

type TelegramRepo_SendMessage_Call struct {
	*mock.Call
}

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

func (*TelegramRepo_SendMessage_Call) Return

func (*TelegramRepo_SendMessage_Call) Run

func (*TelegramRepo_SendMessage_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