Documentation
¶
Index ¶
- type TelegramRepo
- type TelegramRepo_Expecter
- type TelegramRepo_GetChatHistory_Call
- func (_c *TelegramRepo_GetChatHistory_Call) Return(_a0 *client.Messages, _a1 error) *TelegramRepo_GetChatHistory_Call
- func (_c *TelegramRepo_GetChatHistory_Call) Run(run func(_a0 *client.GetChatHistoryRequest)) *TelegramRepo_GetChatHistory_Call
- func (_c *TelegramRepo_GetChatHistory_Call) RunAndReturn(run func(*client.GetChatHistoryRequest) (*client.Messages, error)) *TelegramRepo_GetChatHistory_Call
- type TelegramRepo_LoadChats_Call
- func (_c *TelegramRepo_LoadChats_Call) Return(_a0 *client.Ok, _a1 error) *TelegramRepo_LoadChats_Call
- func (_c *TelegramRepo_LoadChats_Call) Run(run func(_a0 *client.LoadChatsRequest)) *TelegramRepo_LoadChats_Call
- func (_c *TelegramRepo_LoadChats_Call) RunAndReturn(run func(*client.LoadChatsRequest) (*client.Ok, error)) *TelegramRepo_LoadChats_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TelegramRepo ¶
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) GetChatHistory ¶
func (_m *TelegramRepo) GetChatHistory(_a0 *client.GetChatHistoryRequest) (*client.Messages, error)
GetChatHistory provides a mock function with given fields: _a0
func (*TelegramRepo) LoadChats ¶
func (_m *TelegramRepo) LoadChats(_a0 *client.LoadChatsRequest) (*client.Ok, error)
LoadChats provides a mock function with given fields: _a0
type TelegramRepo_Expecter ¶
type TelegramRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*TelegramRepo_Expecter) GetChatHistory ¶
func (_e *TelegramRepo_Expecter) GetChatHistory(_a0 interface{}) *TelegramRepo_GetChatHistory_Call
GetChatHistory is a helper method to define mock.On call
- _a0 *client.GetChatHistoryRequest
func (*TelegramRepo_Expecter) LoadChats ¶
func (_e *TelegramRepo_Expecter) LoadChats(_a0 interface{}) *TelegramRepo_LoadChats_Call
LoadChats is a helper method to define mock.On call
- _a0 *client.LoadChatsRequest
type TelegramRepo_GetChatHistory_Call ¶
TelegramRepo_GetChatHistory_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChatHistory'
func (*TelegramRepo_GetChatHistory_Call) Return ¶
func (_c *TelegramRepo_GetChatHistory_Call) Return(_a0 *client.Messages, _a1 error) *TelegramRepo_GetChatHistory_Call
func (*TelegramRepo_GetChatHistory_Call) Run ¶
func (_c *TelegramRepo_GetChatHistory_Call) Run(run func(_a0 *client.GetChatHistoryRequest)) *TelegramRepo_GetChatHistory_Call
func (*TelegramRepo_GetChatHistory_Call) RunAndReturn ¶
func (_c *TelegramRepo_GetChatHistory_Call) RunAndReturn(run func(*client.GetChatHistoryRequest) (*client.Messages, error)) *TelegramRepo_GetChatHistory_Call
type TelegramRepo_LoadChats_Call ¶
TelegramRepo_LoadChats_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'LoadChats'
func (*TelegramRepo_LoadChats_Call) Return ¶
func (_c *TelegramRepo_LoadChats_Call) Return(_a0 *client.Ok, _a1 error) *TelegramRepo_LoadChats_Call
func (*TelegramRepo_LoadChats_Call) Run ¶
func (_c *TelegramRepo_LoadChats_Call) Run(run func(_a0 *client.LoadChatsRequest)) *TelegramRepo_LoadChats_Call
func (*TelegramRepo_LoadChats_Call) RunAndReturn ¶
func (_c *TelegramRepo_LoadChats_Call) RunAndReturn(run func(*client.LoadChatsRequest) (*client.Ok, error)) *TelegramRepo_LoadChats_Call