mocks

package
v0.0.1 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 27, 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 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) GetChatHistory

func (_m *TelegramRepo) GetChatHistory(_a0 *client.GetChatHistoryRequest) (*client.Messages, error)

GetChatHistory provides a mock function with given fields: _a0

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

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

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

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

func (*TelegramRepo_GetChatHistory_Call) RunAndReturn

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 TelegramRepo_LoadChats_Call

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

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