mocks

package
v1.8.0 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ErrUpd

type ErrUpd struct {
	mock.Mock
}

ErrUpd is an autogenerated mock type for the ErrUpd type

func NewErrUpd

func NewErrUpd(t mockConstructorTestingTNewErrUpd) *ErrUpd

NewErrUpd creates a new instance of ErrUpd. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ErrUpd) Execute

func (_m *ErrUpd) Execute(_a0 string, _a1 tgbotapi.Update, _a2 error)

Execute provides a mock function with given fields: _a0, _a1, _a2

type IEventHandler

type IEventHandler struct {
	mock.Mock
}

IEventHandler is an autogenerated mock type for the IEventHandler type

func NewIEventHandler

func NewIEventHandler(t mockConstructorTestingTNewIEventHandler) *IEventHandler

NewIEventHandler creates a new instance of IEventHandler. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IEventHandler) Decorate

func (_m *IEventHandler) Decorate(_a0 tgchain.IEventHandler)

Decorate provides a mock function with given fields: _a0

func (*IEventHandler) GetDescription

func (_m *IEventHandler) GetDescription() string

GetDescription provides a mock function with given fields:

func (*IEventHandler) GetName

func (_m *IEventHandler) GetName() string

GetName provides a mock function with given fields:

func (*IEventHandler) Handle

func (_m *IEventHandler) Handle(_a0 context.Context, _a1 tgbotapi.Update) error

Handle provides a mock function with given fields: _a0, _a1

func (*IEventHandler) Next

func (_m *IEventHandler) Next(_a0 context.Context, _a1 tgbotapi.Update) error

Next provides a mock function with given fields: _a0, _a1

type IListener

type IListener struct {
	mock.Mock
}

IListener is an autogenerated mock type for the IListener type

func NewIListener

func NewIListener(t mockConstructorTestingTNewIListener) *IListener

NewIListener creates a new instance of IListener. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*IListener) Add

Add provides a mock function with given fields: _a0, _a1

func (*IListener) Listen

func (_m *IListener) Listen(_a0 context.Context, _a1 tgbotapi.UpdatesChannel)

Listen provides a mock function with given fields: _a0, _a1

type ITgAPI

type ITgAPI struct {
	mock.Mock
}

ITgAPI is an autogenerated mock type for the ITgAPI type

func NewITgAPI

func NewITgAPI(t mockConstructorTestingTNewITgAPI) *ITgAPI

NewITgAPI creates a new instance of ITgAPI. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*ITgAPI) AnswerInlineQuery

func (_m *ITgAPI) AnswerInlineQuery(_a0 tgbotapi.InlineConfig) (tgbotapi.APIResponse, error)

AnswerInlineQuery provides a mock function with given fields: _a0

func (*ITgAPI) GetChatMember

func (_m *ITgAPI) GetChatMember(_a0 tgbotapi.ChatConfigWithUser) (tgbotapi.ChatMember, error)

GetChatMember provides a mock function with given fields: _a0

func (*ITgAPI) GetMe

func (_m *ITgAPI) GetMe() (tgbotapi.User, error)

GetMe provides a mock function with given fields:

func (*ITgAPI) GetUpdatesChan

func (_m *ITgAPI) GetUpdatesChan(_a0 tgbotapi.UpdateConfig) (tgbotapi.UpdatesChannel, error)

GetUpdatesChan provides a mock function with given fields: _a0

func (*ITgAPI) LeaveChat

func (_m *ITgAPI) LeaveChat(_a0 tgbotapi.ChatConfig) (tgbotapi.APIResponse, error)

LeaveChat provides a mock function with given fields: _a0

func (*ITgAPI) Send

func (_m *ITgAPI) Send(_a0 tgbotapi.Chattable) (tgbotapi.Message, error)

Send provides a mock function with given fields: _a0

type WarnUpd

type WarnUpd struct {
	mock.Mock
}

WarnUpd is an autogenerated mock type for the WarnUpd type

func NewWarnUpd

func NewWarnUpd(t mockConstructorTestingTNewWarnUpd) *WarnUpd

NewWarnUpd creates a new instance of WarnUpd. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.

func (*WarnUpd) Execute

func (_m *WarnUpd) Execute(_a0 string, _a1 tgbotapi.Update)

Execute provides a mock function with given fields: _a0, _a1

Jump to

Keyboard shortcuts

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