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

func (_m *StorageService) DeleteCopiedMessageIds(chatId int64, messageId int64)

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

func (*StorageService) DeleteNewMessageId

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

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

func (*StorageService) DeleteTmpMessageId

func (_m *StorageService) DeleteTmpMessageId(chatId int64, newMessageId int64)

DeleteTmpMessageId provides a mock function with given fields: chatId, newMessageId

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

type StorageService_DeleteCopiedMessageIds_Call struct {
	*mock.Call
}

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

func (*StorageService_DeleteCopiedMessageIds_Call) Return

func (*StorageService_DeleteCopiedMessageIds_Call) Run

func (*StorageService_DeleteCopiedMessageIds_Call) RunAndReturn

type StorageService_DeleteNewMessageId_Call

type StorageService_DeleteNewMessageId_Call struct {
	*mock.Call
}

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

func (*StorageService_DeleteNewMessageId_Call) Return

func (*StorageService_DeleteNewMessageId_Call) Run

func (*StorageService_DeleteNewMessageId_Call) RunAndReturn

type StorageService_DeleteTmpMessageId_Call

type StorageService_DeleteTmpMessageId_Call struct {
	*mock.Call
}

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

func (*StorageService_DeleteTmpMessageId_Call) Return

func (*StorageService_DeleteTmpMessageId_Call) Run

func (*StorageService_DeleteTmpMessageId_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) DeleteCopiedMessageIds

func (_e *StorageService_Expecter) DeleteCopiedMessageIds(chatId interface{}, messageId interface{}) *StorageService_DeleteCopiedMessageIds_Call

DeleteCopiedMessageIds is a helper method to define mock.On call

  • chatId int64
  • messageId int64

func (*StorageService_Expecter) DeleteNewMessageId

func (_e *StorageService_Expecter) DeleteNewMessageId(chatId interface{}, tmpMessageId interface{}) *StorageService_DeleteNewMessageId_Call

DeleteNewMessageId is a helper method to define mock.On call

  • chatId int64
  • tmpMessageId int64

func (*StorageService_Expecter) DeleteTmpMessageId

func (_e *StorageService_Expecter) DeleteTmpMessageId(chatId interface{}, newMessageId interface{}) *StorageService_DeleteTmpMessageId_Call

DeleteTmpMessageId is a helper method to define mock.On call

  • chatId int64
  • newMessageId 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

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

func (_m *TelegramRepo) DeleteMessages(_a0 *client.DeleteMessagesRequest) (*client.Ok, error)

DeleteMessages provides a mock function with given fields: _a0

func (*TelegramRepo) EXPECT

func (_m *TelegramRepo) EXPECT() *TelegramRepo_Expecter

type TelegramRepo_DeleteMessages_Call

type TelegramRepo_DeleteMessages_Call struct {
	*mock.Call
}

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

func (*TelegramRepo_DeleteMessages_Call) Return

func (*TelegramRepo_DeleteMessages_Call) Run

func (*TelegramRepo_DeleteMessages_Call) RunAndReturn

type TelegramRepo_Expecter

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

func (*TelegramRepo_Expecter) DeleteMessages

func (_e *TelegramRepo_Expecter) DeleteMessages(_a0 interface{}) *TelegramRepo_DeleteMessages_Call

DeleteMessages is a helper method to define mock.On call

  • _a0 *client.DeleteMessagesRequest

Jump to

Keyboard shortcuts

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