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

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

Jump to

Keyboard shortcuts

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