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: 2 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 (_m *MessageService) GetMessageByLink(url string) *client.Message

GetMessageByLink provides a mock function with given fields: url

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 (_e *MessageService_Expecter) GetMessageByLink(url interface{}) *MessageService_GetMessageByLink_Call

GetMessageByLink is a helper method to define mock.On call

  • url string

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_GetMessageByLink_Call struct {
	*mock.Call
}

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

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

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

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

GetCallbackQueryAnswer provides a mock function with given fields: _a0

func (*TelegramRepo) GetChat

func (_m *TelegramRepo) GetChat(_a0 *client.GetChatRequest) (*client.Chat, error)

GetChat provides a mock function with given fields: _a0

func (_m *TelegramRepo) GetMessageLink(_a0 *client.GetMessageLinkRequest) (*client.MessageLink, error)

GetMessageLink provides a mock function with given fields: _a0

func (*TelegramRepo) GetMessageLinkInfo

func (_m *TelegramRepo) GetMessageLinkInfo(_a0 *client.GetMessageLinkInfoRequest) (*client.MessageLinkInfo, error)

GetMessageLinkInfo provides a mock function with given fields: _a0

func (*TelegramRepo) ParseTextEntities

func (_m *TelegramRepo) ParseTextEntities(_a0 *client.ParseTextEntitiesRequest) (*client.FormattedText, error)

ParseTextEntities provides a mock function with given fields: _a0

type TelegramRepo_Expecter

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

func (*TelegramRepo_Expecter) GetCallbackQueryAnswer

func (_e *TelegramRepo_Expecter) GetCallbackQueryAnswer(_a0 interface{}) *TelegramRepo_GetCallbackQueryAnswer_Call

GetCallbackQueryAnswer is a helper method to define mock.On call

  • _a0 *client.GetCallbackQueryAnswerRequest

func (*TelegramRepo_Expecter) GetChat

func (_e *TelegramRepo_Expecter) GetChat(_a0 interface{}) *TelegramRepo_GetChat_Call

GetChat is a helper method to define mock.On call

  • _a0 *client.GetChatRequest
func (_e *TelegramRepo_Expecter) GetMessageLink(_a0 interface{}) *TelegramRepo_GetMessageLink_Call

GetMessageLink is a helper method to define mock.On call

  • _a0 *client.GetMessageLinkRequest

func (*TelegramRepo_Expecter) GetMessageLinkInfo

func (_e *TelegramRepo_Expecter) GetMessageLinkInfo(_a0 interface{}) *TelegramRepo_GetMessageLinkInfo_Call

GetMessageLinkInfo is a helper method to define mock.On call

  • _a0 *client.GetMessageLinkInfoRequest

func (*TelegramRepo_Expecter) ParseTextEntities

func (_e *TelegramRepo_Expecter) ParseTextEntities(_a0 interface{}) *TelegramRepo_ParseTextEntities_Call

ParseTextEntities is a helper method to define mock.On call

  • _a0 *client.ParseTextEntitiesRequest

type TelegramRepo_GetCallbackQueryAnswer_Call

type TelegramRepo_GetCallbackQueryAnswer_Call struct {
	*mock.Call
}

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

func (*TelegramRepo_GetCallbackQueryAnswer_Call) Return

func (*TelegramRepo_GetCallbackQueryAnswer_Call) Run

type TelegramRepo_GetChat_Call

type TelegramRepo_GetChat_Call struct {
	*mock.Call
}

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

func (*TelegramRepo_GetChat_Call) Return

func (*TelegramRepo_GetChat_Call) Run

func (*TelegramRepo_GetChat_Call) RunAndReturn

type TelegramRepo_GetMessageLinkInfo_Call

type TelegramRepo_GetMessageLinkInfo_Call struct {
	*mock.Call
}

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

func (*TelegramRepo_GetMessageLinkInfo_Call) Return

func (*TelegramRepo_GetMessageLinkInfo_Call) Run

func (*TelegramRepo_GetMessageLinkInfo_Call) RunAndReturn

type TelegramRepo_GetMessageLink_Call struct {
	*mock.Call
}

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

type TelegramRepo_ParseTextEntities_Call

type TelegramRepo_ParseTextEntities_Call struct {
	*mock.Call
}

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

func (*TelegramRepo_ParseTextEntities_Call) Return

func (*TelegramRepo_ParseTextEntities_Call) Run

func (*TelegramRepo_ParseTextEntities_Call) RunAndReturn

Jump to

Keyboard shortcuts

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