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: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EngineLoaderService added in v0.0.2

type EngineLoaderService struct {
	mock.Mock
}

EngineLoaderService is an autogenerated mock type for the engineLoaderService type

func NewEngineLoaderService added in v0.0.2

func NewEngineLoaderService(t interface {
	mock.TestingT
	Cleanup(func())
}) *EngineLoaderService

NewEngineLoaderService creates a new instance of EngineLoaderService. 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 (*EngineLoaderService) EXPECT added in v0.0.2

func (*EngineLoaderService) LoadConfig added in v0.0.2

func (_m *EngineLoaderService) LoadConfig()

LoadConfig provides a mock function with no fields

type EngineLoaderService_Expecter added in v0.0.2

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

func (*EngineLoaderService_Expecter) LoadConfig added in v0.0.2

LoadConfig is a helper method to define mock.On call

type EngineLoaderService_LoadConfig_Call added in v0.0.2

type EngineLoaderService_LoadConfig_Call struct {
	*mock.Call
}

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

func (*EngineLoaderService_LoadConfig_Call) Return added in v0.0.2

func (*EngineLoaderService_LoadConfig_Call) Run added in v0.0.2

func (*EngineLoaderService_LoadConfig_Call) RunAndReturn added in v0.0.2

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

func (_m *TelegramRepo) EXPECT() *TelegramRepo_Expecter

func (*TelegramRepo) GetClientDone

func (_m *TelegramRepo) GetClientDone() <-chan interface{}

GetClientDone provides a mock function with no fields

func (*TelegramRepo) GetListener

func (_m *TelegramRepo) GetListener() *client.Listener

GetListener provides a mock function with no fields

type TelegramRepo_Expecter

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

func (*TelegramRepo_Expecter) GetClientDone

GetClientDone is a helper method to define mock.On call

func (*TelegramRepo_Expecter) GetListener

GetListener is a helper method to define mock.On call

type TelegramRepo_GetClientDone_Call

type TelegramRepo_GetClientDone_Call struct {
	*mock.Call
}

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

func (*TelegramRepo_GetClientDone_Call) Return

func (_c *TelegramRepo_GetClientDone_Call) Return(_a0 <-chan interface{}) *TelegramRepo_GetClientDone_Call

func (*TelegramRepo_GetClientDone_Call) Run

func (*TelegramRepo_GetClientDone_Call) RunAndReturn

func (_c *TelegramRepo_GetClientDone_Call) RunAndReturn(run func() <-chan interface{}) *TelegramRepo_GetClientDone_Call

type TelegramRepo_GetListener_Call

type TelegramRepo_GetListener_Call struct {
	*mock.Call
}

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

func (*TelegramRepo_GetListener_Call) Return

func (*TelegramRepo_GetListener_Call) Run

func (*TelegramRepo_GetListener_Call) RunAndReturn

type UpdateDeleteMessagesHandler

type UpdateDeleteMessagesHandler struct {
	mock.Mock
}

UpdateDeleteMessagesHandler is an autogenerated mock type for the updateDeleteMessagesHandler type

func NewUpdateDeleteMessagesHandler

func NewUpdateDeleteMessagesHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *UpdateDeleteMessagesHandler

NewUpdateDeleteMessagesHandler creates a new instance of UpdateDeleteMessagesHandler. 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 (*UpdateDeleteMessagesHandler) EXPECT

func (*UpdateDeleteMessagesHandler) Run

Run provides a mock function with given fields: update

type UpdateDeleteMessagesHandler_Expecter

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

func (*UpdateDeleteMessagesHandler_Expecter) Run

Run is a helper method to define mock.On call

  • update *client.UpdateDeleteMessages

type UpdateDeleteMessagesHandler_Run_Call

type UpdateDeleteMessagesHandler_Run_Call struct {
	*mock.Call
}

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

func (*UpdateDeleteMessagesHandler_Run_Call) Return

func (*UpdateDeleteMessagesHandler_Run_Call) Run

func (*UpdateDeleteMessagesHandler_Run_Call) RunAndReturn

type UpdateMessageEditedHandler

type UpdateMessageEditedHandler struct {
	mock.Mock
}

UpdateMessageEditedHandler is an autogenerated mock type for the updateMessageEditedHandler type

func NewUpdateMessageEditedHandler

func NewUpdateMessageEditedHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *UpdateMessageEditedHandler

NewUpdateMessageEditedHandler creates a new instance of UpdateMessageEditedHandler. 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 (*UpdateMessageEditedHandler) EXPECT

func (*UpdateMessageEditedHandler) Run

Run provides a mock function with given fields: update

type UpdateMessageEditedHandler_Expecter

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

func (*UpdateMessageEditedHandler_Expecter) Run

Run is a helper method to define mock.On call

  • update *client.UpdateMessageEdited

type UpdateMessageEditedHandler_Run_Call

type UpdateMessageEditedHandler_Run_Call struct {
	*mock.Call
}

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

func (*UpdateMessageEditedHandler_Run_Call) Return

func (*UpdateMessageEditedHandler_Run_Call) Run

func (*UpdateMessageEditedHandler_Run_Call) RunAndReturn

type UpdateMessageSendHandler

type UpdateMessageSendHandler struct {
	mock.Mock
}

UpdateMessageSendHandler is an autogenerated mock type for the updateMessageSendHandler type

func NewUpdateMessageSendHandler

func NewUpdateMessageSendHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *UpdateMessageSendHandler

NewUpdateMessageSendHandler creates a new instance of UpdateMessageSendHandler. 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 (*UpdateMessageSendHandler) EXPECT

func (*UpdateMessageSendHandler) Run

Run provides a mock function with given fields: update

type UpdateMessageSendHandler_Expecter

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

func (*UpdateMessageSendHandler_Expecter) Run

Run is a helper method to define mock.On call

  • update *client.UpdateMessageSendSucceeded

type UpdateMessageSendHandler_Run_Call

type UpdateMessageSendHandler_Run_Call struct {
	*mock.Call
}

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

func (*UpdateMessageSendHandler_Run_Call) Return

func (*UpdateMessageSendHandler_Run_Call) Run

func (*UpdateMessageSendHandler_Run_Call) RunAndReturn

type UpdateNewMessageHandler

type UpdateNewMessageHandler struct {
	mock.Mock
}

UpdateNewMessageHandler is an autogenerated mock type for the updateNewMessageHandler type

func NewUpdateNewMessageHandler

func NewUpdateNewMessageHandler(t interface {
	mock.TestingT
	Cleanup(func())
}) *UpdateNewMessageHandler

NewUpdateNewMessageHandler creates a new instance of UpdateNewMessageHandler. 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 (*UpdateNewMessageHandler) EXPECT

func (*UpdateNewMessageHandler) Run

Run provides a mock function with given fields: ctx, update

type UpdateNewMessageHandler_Expecter

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

func (*UpdateNewMessageHandler_Expecter) Run

func (_e *UpdateNewMessageHandler_Expecter) Run(ctx interface{}, update interface{}) *UpdateNewMessageHandler_Run_Call

Run is a helper method to define mock.On call

  • ctx context.Context
  • update *client.UpdateNewMessage

type UpdateNewMessageHandler_Run_Call

type UpdateNewMessageHandler_Run_Call struct {
	*mock.Call
}

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

func (*UpdateNewMessageHandler_Run_Call) Return

func (*UpdateNewMessageHandler_Run_Call) Run

func (*UpdateNewMessageHandler_Run_Call) RunAndReturn

Jump to

Keyboard shortcuts

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