Documentation
¶
Index ¶
- type QueueRepo
- type QueueRepo_Add_Call
- type QueueRepo_Expecter
- type StorageService
- type StorageService_Expecter
- func (_e *StorageService_Expecter) SetNewMessageId(chatId interface{}, tmpMessageId interface{}, newMessageId interface{}) *StorageService_SetNewMessageId_Call
- func (_e *StorageService_Expecter) SetTmpMessageId(chatId interface{}, newMessageId interface{}, tmpMessageId interface{}) *StorageService_SetTmpMessageId_Call
- type StorageService_SetNewMessageId_Call
- func (_c *StorageService_SetNewMessageId_Call) Return() *StorageService_SetNewMessageId_Call
- func (_c *StorageService_SetNewMessageId_Call) Run(run func(chatId int64, tmpMessageId int64, newMessageId int64)) *StorageService_SetNewMessageId_Call
- func (_c *StorageService_SetNewMessageId_Call) RunAndReturn(run func(int64, int64, int64)) *StorageService_SetNewMessageId_Call
- type StorageService_SetTmpMessageId_Call
- func (_c *StorageService_SetTmpMessageId_Call) Return() *StorageService_SetTmpMessageId_Call
- func (_c *StorageService_SetTmpMessageId_Call) Run(run func(chatId int64, newMessageId int64, tmpMessageId int64)) *StorageService_SetTmpMessageId_Call
- func (_c *StorageService_SetTmpMessageId_Call) RunAndReturn(run func(int64, int64, int64)) *StorageService_SetTmpMessageId_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueueRepo ¶
QueueRepo is an autogenerated mock type for the queueRepo type
func NewQueueRepo ¶
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 ¶
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 ¶
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 (_m *StorageService) EXPECT() *StorageService_Expecter
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 ¶
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 (_c *StorageService_SetNewMessageId_Call) Return() *StorageService_SetNewMessageId_Call
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 ¶
func (_c *StorageService_SetNewMessageId_Call) RunAndReturn(run func(int64, int64, int64)) *StorageService_SetNewMessageId_Call
type StorageService_SetTmpMessageId_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 (_c *StorageService_SetTmpMessageId_Call) Return() *StorageService_SetTmpMessageId_Call
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 ¶
func (_c *StorageService_SetTmpMessageId_Call) RunAndReturn(run func(int64, int64, int64)) *StorageService_SetTmpMessageId_Call