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: 1 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) EXPECT

func (*StorageService) SetNewMessageId

func (_m *StorageService) SetNewMessageId(chatId int64, tmpMessageId int64, newMessageId int64)

SetNewMessageId provides a mock function with given fields: chatId, tmpMessageId, newMessageId

func (*StorageService) SetTmpMessageId

func (_m *StorageService) SetTmpMessageId(chatId int64, newMessageId int64, tmpMessageId int64)

SetTmpMessageId provides a mock function with given fields: chatId, newMessageId, tmpMessageId

type StorageService_Expecter

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

func (*StorageService_Expecter) SetNewMessageId

func (_e *StorageService_Expecter) SetNewMessageId(chatId interface{}, tmpMessageId interface{}, newMessageId interface{}) *StorageService_SetNewMessageId_Call

SetNewMessageId is a helper method to define mock.On call

  • chatId int64
  • tmpMessageId int64
  • newMessageId int64

func (*StorageService_Expecter) SetTmpMessageId

func (_e *StorageService_Expecter) SetTmpMessageId(chatId interface{}, newMessageId interface{}, tmpMessageId interface{}) *StorageService_SetTmpMessageId_Call

SetTmpMessageId is a helper method to define mock.On call

  • chatId int64
  • newMessageId int64
  • tmpMessageId int64

type StorageService_SetNewMessageId_Call

type StorageService_SetNewMessageId_Call struct {
	*mock.Call
}

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

func (*StorageService_SetNewMessageId_Call) Return

func (*StorageService_SetNewMessageId_Call) Run

func (_c *StorageService_SetNewMessageId_Call) Run(run func(chatId int64, tmpMessageId int64, newMessageId int64)) *StorageService_SetNewMessageId_Call

func (*StorageService_SetNewMessageId_Call) RunAndReturn

type StorageService_SetTmpMessageId_Call

type StorageService_SetTmpMessageId_Call struct {
	*mock.Call
}

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

func (*StorageService_SetTmpMessageId_Call) Return

func (*StorageService_SetTmpMessageId_Call) Run

func (_c *StorageService_SetTmpMessageId_Call) Run(run func(chatId int64, newMessageId int64, tmpMessageId int64)) *StorageService_SetTmpMessageId_Call

func (*StorageService_SetTmpMessageId_Call) RunAndReturn

Jump to

Keyboard shortcuts

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