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 LoaderService added in v0.0.2

type LoaderService struct {
	mock.Mock
}

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

Run is a helper method to define mock.On call

type LoaderService_Run_Call added in v0.0.2

type LoaderService_Run_Call struct {
	*mock.Call
}

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 (*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

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

GetOption provides a mock function with given fields: _a0

type TelegramRepo_CreateClient_Call

type TelegramRepo_CreateClient_Call struct {
	*mock.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 (*TelegramRepo_CreateClient_Call) Run

func (*TelegramRepo_CreateClient_Call) RunAndReturn

type TelegramRepo_CreateTdlibParameters_Call

type TelegramRepo_CreateTdlibParameters_Call struct {
	*mock.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 (*TelegramRepo_CreateTdlibParameters_Call) Run

func (*TelegramRepo_CreateTdlibParameters_Call) RunAndReturn

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

CreateTdlibParameters is a helper method to define mock.On call

func (*TelegramRepo_Expecter) GetMe

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

type TelegramRepo_GetMe_Call struct {
	*mock.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 (*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

type TelegramRepo_GetOption_Call struct {
	*mock.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 (*TelegramRepo_GetOption_Call) Run

func (*TelegramRepo_GetOption_Call) RunAndReturn

Jump to

Keyboard shortcuts

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