Documentation
¶
Index ¶
- type LoaderService
- type LoaderService_Expecter
- type LoaderService_Run_Call
- type TelegramRepo
- func (_m *TelegramRepo) CreateClient(_a0 func() client.AuthorizationStateHandler, _a1 func())
- func (_m *TelegramRepo) CreateTdlibParameters() *client.SetTdlibParametersRequest
- func (_m *TelegramRepo) EXPECT() *TelegramRepo_Expecter
- func (_m *TelegramRepo) GetMe() (*client.User, error)
- func (_m *TelegramRepo) GetOption(_a0 *client.GetOptionRequest) (client.OptionValue, error)
- type TelegramRepo_CreateClient_Call
- func (_c *TelegramRepo_CreateClient_Call) Return() *TelegramRepo_CreateClient_Call
- func (_c *TelegramRepo_CreateClient_Call) Run(run func(_a0 func() client.AuthorizationStateHandler, _a1 func())) *TelegramRepo_CreateClient_Call
- func (_c *TelegramRepo_CreateClient_Call) RunAndReturn(run func(func() client.AuthorizationStateHandler, func())) *TelegramRepo_CreateClient_Call
- type TelegramRepo_CreateTdlibParameters_Call
- func (_c *TelegramRepo_CreateTdlibParameters_Call) Return(_a0 *client.SetTdlibParametersRequest) *TelegramRepo_CreateTdlibParameters_Call
- func (_c *TelegramRepo_CreateTdlibParameters_Call) Run(run func()) *TelegramRepo_CreateTdlibParameters_Call
- func (_c *TelegramRepo_CreateTdlibParameters_Call) RunAndReturn(run func() *client.SetTdlibParametersRequest) *TelegramRepo_CreateTdlibParameters_Call
- type TelegramRepo_Expecter
- func (_e *TelegramRepo_Expecter) CreateClient(_a0 interface{}, _a1 interface{}) *TelegramRepo_CreateClient_Call
- func (_e *TelegramRepo_Expecter) CreateTdlibParameters() *TelegramRepo_CreateTdlibParameters_Call
- func (_e *TelegramRepo_Expecter) GetMe() *TelegramRepo_GetMe_Call
- func (_e *TelegramRepo_Expecter) GetOption(_a0 interface{}) *TelegramRepo_GetOption_Call
- type TelegramRepo_GetMe_Call
- type TelegramRepo_GetOption_Call
- func (_c *TelegramRepo_GetOption_Call) Return(_a0 client.OptionValue, _a1 error) *TelegramRepo_GetOption_Call
- func (_c *TelegramRepo_GetOption_Call) Run(run func(_a0 *client.GetOptionRequest)) *TelegramRepo_GetOption_Call
- func (_c *TelegramRepo_GetOption_Call) RunAndReturn(run func(*client.GetOptionRequest) (client.OptionValue, error)) *TelegramRepo_GetOption_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LoaderService ¶ added in v0.0.2
LoaderService is an autogenerated mock type for the loaderService type
func NewLoaderService ¶ added in v0.0.2
func NewLoaderService(t interface {
mock.TestingT
Cleanup(func())
}) *LoaderService
NewLoaderService creates a new instance of LoaderService. 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 (*LoaderService) EXPECT ¶ added in v0.0.2
func (_m *LoaderService) EXPECT() *LoaderService_Expecter
func (*LoaderService) Run ¶ added in v0.0.2
func (_m *LoaderService) Run()
Run provides a mock function with no fields
type LoaderService_Expecter ¶ added in v0.0.2
type LoaderService_Expecter struct {
// contains filtered or unexported fields
}
func (*LoaderService_Expecter) Run ¶ added in v0.0.2
func (_e *LoaderService_Expecter) Run() *LoaderService_Run_Call
Run is a helper method to define mock.On call
type LoaderService_Run_Call ¶ added in v0.0.2
LoaderService_Run_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Run'
func (*LoaderService_Run_Call) Return ¶ added in v0.0.2
func (_c *LoaderService_Run_Call) Return() *LoaderService_Run_Call
func (*LoaderService_Run_Call) Run ¶ added in v0.0.2
func (_c *LoaderService_Run_Call) Run(run func()) *LoaderService_Run_Call
func (*LoaderService_Run_Call) RunAndReturn ¶ added in v0.0.2
func (_c *LoaderService_Run_Call) RunAndReturn(run func()) *LoaderService_Run_Call
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) CreateClient ¶
func (_m *TelegramRepo) CreateClient(_a0 func() client.AuthorizationStateHandler, _a1 func())
CreateClient provides a mock function with given fields: _a0, _a1
func (*TelegramRepo) CreateTdlibParameters ¶
func (_m *TelegramRepo) CreateTdlibParameters() *client.SetTdlibParametersRequest
CreateTdlibParameters provides a mock function with no fields
func (*TelegramRepo) EXPECT ¶
func (_m *TelegramRepo) EXPECT() *TelegramRepo_Expecter
func (*TelegramRepo) GetMe ¶
func (_m *TelegramRepo) GetMe() (*client.User, error)
GetMe provides a mock function with no fields
func (*TelegramRepo) GetOption ¶
func (_m *TelegramRepo) GetOption(_a0 *client.GetOptionRequest) (client.OptionValue, error)
GetOption provides a mock function with given fields: _a0
type TelegramRepo_CreateClient_Call ¶
TelegramRepo_CreateClient_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateClient'
func (*TelegramRepo_CreateClient_Call) Return ¶
func (_c *TelegramRepo_CreateClient_Call) Return() *TelegramRepo_CreateClient_Call
func (*TelegramRepo_CreateClient_Call) Run ¶
func (_c *TelegramRepo_CreateClient_Call) Run(run func(_a0 func() client.AuthorizationStateHandler, _a1 func())) *TelegramRepo_CreateClient_Call
func (*TelegramRepo_CreateClient_Call) RunAndReturn ¶
func (_c *TelegramRepo_CreateClient_Call) RunAndReturn(run func(func() client.AuthorizationStateHandler, func())) *TelegramRepo_CreateClient_Call
type TelegramRepo_CreateTdlibParameters_Call ¶
TelegramRepo_CreateTdlibParameters_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CreateTdlibParameters'
func (*TelegramRepo_CreateTdlibParameters_Call) Return ¶
func (_c *TelegramRepo_CreateTdlibParameters_Call) Return(_a0 *client.SetTdlibParametersRequest) *TelegramRepo_CreateTdlibParameters_Call
func (*TelegramRepo_CreateTdlibParameters_Call) Run ¶
func (_c *TelegramRepo_CreateTdlibParameters_Call) Run(run func()) *TelegramRepo_CreateTdlibParameters_Call
func (*TelegramRepo_CreateTdlibParameters_Call) RunAndReturn ¶
func (_c *TelegramRepo_CreateTdlibParameters_Call) RunAndReturn(run func() *client.SetTdlibParametersRequest) *TelegramRepo_CreateTdlibParameters_Call
type TelegramRepo_Expecter ¶
type TelegramRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*TelegramRepo_Expecter) CreateClient ¶
func (_e *TelegramRepo_Expecter) CreateClient(_a0 interface{}, _a1 interface{}) *TelegramRepo_CreateClient_Call
CreateClient is a helper method to define mock.On call
- _a0 func() client.AuthorizationStateHandler
- _a1 func()
func (*TelegramRepo_Expecter) CreateTdlibParameters ¶
func (_e *TelegramRepo_Expecter) CreateTdlibParameters() *TelegramRepo_CreateTdlibParameters_Call
CreateTdlibParameters is a helper method to define mock.On call
func (*TelegramRepo_Expecter) GetMe ¶
func (_e *TelegramRepo_Expecter) GetMe() *TelegramRepo_GetMe_Call
GetMe is a helper method to define mock.On call
func (*TelegramRepo_Expecter) GetOption ¶
func (_e *TelegramRepo_Expecter) GetOption(_a0 interface{}) *TelegramRepo_GetOption_Call
GetOption is a helper method to define mock.On call
- _a0 *client.GetOptionRequest
type TelegramRepo_GetMe_Call ¶
TelegramRepo_GetMe_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMe'
func (*TelegramRepo_GetMe_Call) Return ¶
func (_c *TelegramRepo_GetMe_Call) Return(_a0 *client.User, _a1 error) *TelegramRepo_GetMe_Call
func (*TelegramRepo_GetMe_Call) Run ¶
func (_c *TelegramRepo_GetMe_Call) Run(run func()) *TelegramRepo_GetMe_Call
func (*TelegramRepo_GetMe_Call) RunAndReturn ¶
func (_c *TelegramRepo_GetMe_Call) RunAndReturn(run func() (*client.User, error)) *TelegramRepo_GetMe_Call
type TelegramRepo_GetOption_Call ¶
TelegramRepo_GetOption_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetOption'
func (*TelegramRepo_GetOption_Call) Return ¶
func (_c *TelegramRepo_GetOption_Call) Return(_a0 client.OptionValue, _a1 error) *TelegramRepo_GetOption_Call
func (*TelegramRepo_GetOption_Call) Run ¶
func (_c *TelegramRepo_GetOption_Call) Run(run func(_a0 *client.GetOptionRequest)) *TelegramRepo_GetOption_Call
func (*TelegramRepo_GetOption_Call) RunAndReturn ¶
func (_c *TelegramRepo_GetOption_Call) RunAndReturn(run func(*client.GetOptionRequest) (client.OptionValue, error)) *TelegramRepo_GetOption_Call