mocks

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2025 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package mocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockContext

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

MockContext is a mock of Context interface.

func NewMockContext

func NewMockContext(ctrl *gomock.Controller) *MockContext

NewMockContext creates a new mock instance.

func (*MockContext) Accept

func (m *MockContext) Accept(errorMessage ...string) error

Accept mocks base method.

func (*MockContext) Answer

func (m *MockContext) Answer(resp *telebot.QueryResponse) error

Answer mocks base method.

func (*MockContext) Args

func (m *MockContext) Args() []string

Args mocks base method.

func (*MockContext) Boost

func (m *MockContext) Boost() *telebot.BoostUpdated

Boost mocks base method.

func (*MockContext) BoostRemoved

func (m *MockContext) BoostRemoved() *telebot.BoostRemoved

BoostRemoved mocks base method.

func (*MockContext) Bot

func (m *MockContext) Bot() *telebot.Bot

Bot mocks base method.

func (*MockContext) Callback

func (m *MockContext) Callback() *telebot.Callback

Callback mocks base method.

func (*MockContext) Chat

func (m *MockContext) Chat() *telebot.Chat

Chat mocks base method.

func (*MockContext) ChatJoinRequest

func (m *MockContext) ChatJoinRequest() *telebot.ChatJoinRequest

ChatJoinRequest mocks base method.

func (*MockContext) ChatMember

func (m *MockContext) ChatMember() *telebot.ChatMemberUpdate

ChatMember mocks base method.

func (*MockContext) Data

func (m *MockContext) Data() string

Data mocks base method.

func (*MockContext) Delete

func (m *MockContext) Delete() error

Delete mocks base method.

func (*MockContext) DeleteAfter

func (m *MockContext) DeleteAfter(d time.Duration) *time.Timer

DeleteAfter mocks base method.

func (*MockContext) EXPECT

func (m *MockContext) EXPECT() *MockContextMockRecorder

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockContext) Edit

func (m *MockContext) Edit(what any, opts ...any) error

Edit mocks base method.

func (*MockContext) EditCaption

func (m *MockContext) EditCaption(caption string, opts ...any) error

EditCaption mocks base method.

func (*MockContext) EditOrReply

func (m *MockContext) EditOrReply(what any, opts ...any) error

EditOrReply mocks base method.

func (*MockContext) EditOrSend

func (m *MockContext) EditOrSend(what any, opts ...any) error

EditOrSend mocks base method.

func (*MockContext) Entities

func (m *MockContext) Entities() telebot.Entities

Entities mocks base method.

func (*MockContext) Forward

func (m *MockContext) Forward(msg telebot.Editable, opts ...any) error

Forward mocks base method.

func (*MockContext) ForwardTo

func (m *MockContext) ForwardTo(to telebot.Recipient, opts ...any) error

ForwardTo mocks base method.

func (*MockContext) Get

func (m *MockContext) Get(key string) any

Get mocks base method.

func (*MockContext) InlineResult

func (m *MockContext) InlineResult() *telebot.InlineResult

InlineResult mocks base method.

func (*MockContext) Message

func (m *MockContext) Message() *telebot.Message

Message mocks base method.

func (*MockContext) Migration

func (m *MockContext) Migration() (int64, int64)

Migration mocks base method.

func (*MockContext) Notify

func (m *MockContext) Notify(action telebot.ChatAction) error

Notify mocks base method.

func (*MockContext) Poll

func (m *MockContext) Poll() *telebot.Poll

Poll mocks base method.

func (*MockContext) PollAnswer

func (m *MockContext) PollAnswer() *telebot.PollAnswer

PollAnswer mocks base method.

func (*MockContext) PreCheckoutQuery

func (m *MockContext) PreCheckoutQuery() *telebot.PreCheckoutQuery

PreCheckoutQuery mocks base method.

func (*MockContext) Query

func (m *MockContext) Query() *telebot.Query

Query mocks base method.

func (*MockContext) Recipient

func (m *MockContext) Recipient() telebot.Recipient

Recipient mocks base method.

func (*MockContext) Reply

func (m *MockContext) Reply(what any, opts ...any) error

Reply mocks base method.

func (*MockContext) Respond

func (m *MockContext) Respond(resp ...*telebot.CallbackResponse) error

Respond mocks base method.

func (*MockContext) RespondAlert

func (m *MockContext) RespondAlert(text string) error

RespondAlert mocks base method.

func (*MockContext) RespondText

func (m *MockContext) RespondText(text string) error

RespondText mocks base method.

func (*MockContext) Send

func (m *MockContext) Send(what any, opts ...any) error

Send mocks base method.

func (*MockContext) SendAlbum

func (m *MockContext) SendAlbum(a telebot.Album, opts ...any) error

SendAlbum mocks base method.

func (*MockContext) Sender

func (m *MockContext) Sender() *telebot.User

Sender mocks base method.

func (*MockContext) Set

func (m *MockContext) Set(key string, val any)

Set mocks base method.

func (*MockContext) Ship

func (m *MockContext) Ship(what ...any) error

Ship mocks base method.

func (*MockContext) ShippingQuery

func (m *MockContext) ShippingQuery() *telebot.ShippingQuery

ShippingQuery mocks base method.

func (*MockContext) Text

func (m *MockContext) Text() string

Text mocks base method.

func (*MockContext) Topic

func (m *MockContext) Topic() *telebot.Topic

Topic mocks base method.

func (*MockContext) Update

func (m *MockContext) Update() telebot.Update

Update mocks base method.

type MockContextMockRecorder

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

MockContextMockRecorder is the mock recorder for MockContext.

func (*MockContextMockRecorder) Accept

func (mr *MockContextMockRecorder) Accept(errorMessage ...any) *gomock.Call

Accept indicates an expected call of Accept.

func (*MockContextMockRecorder) Answer

func (mr *MockContextMockRecorder) Answer(resp any) *gomock.Call

Answer indicates an expected call of Answer.

func (*MockContextMockRecorder) Args

func (mr *MockContextMockRecorder) Args() *gomock.Call

Args indicates an expected call of Args.

func (*MockContextMockRecorder) Boost

func (mr *MockContextMockRecorder) Boost() *gomock.Call

Boost indicates an expected call of Boost.

func (*MockContextMockRecorder) BoostRemoved

func (mr *MockContextMockRecorder) BoostRemoved() *gomock.Call

BoostRemoved indicates an expected call of BoostRemoved.

func (*MockContextMockRecorder) Bot

func (mr *MockContextMockRecorder) Bot() *gomock.Call

Bot indicates an expected call of Bot.

func (*MockContextMockRecorder) Callback

func (mr *MockContextMockRecorder) Callback() *gomock.Call

Callback indicates an expected call of Callback.

func (*MockContextMockRecorder) Chat

func (mr *MockContextMockRecorder) Chat() *gomock.Call

Chat indicates an expected call of Chat.

func (*MockContextMockRecorder) ChatJoinRequest

func (mr *MockContextMockRecorder) ChatJoinRequest() *gomock.Call

ChatJoinRequest indicates an expected call of ChatJoinRequest.

func (*MockContextMockRecorder) ChatMember

func (mr *MockContextMockRecorder) ChatMember() *gomock.Call

ChatMember indicates an expected call of ChatMember.

func (*MockContextMockRecorder) Data

func (mr *MockContextMockRecorder) Data() *gomock.Call

Data indicates an expected call of Data.

func (*MockContextMockRecorder) Delete

func (mr *MockContextMockRecorder) Delete() *gomock.Call

Delete indicates an expected call of Delete.

func (*MockContextMockRecorder) DeleteAfter

func (mr *MockContextMockRecorder) DeleteAfter(d any) *gomock.Call

DeleteAfter indicates an expected call of DeleteAfter.

func (*MockContextMockRecorder) Edit

func (mr *MockContextMockRecorder) Edit(what any, opts ...any) *gomock.Call

Edit indicates an expected call of Edit.

func (*MockContextMockRecorder) EditCaption

func (mr *MockContextMockRecorder) EditCaption(caption any, opts ...any) *gomock.Call

EditCaption indicates an expected call of EditCaption.

func (*MockContextMockRecorder) EditOrReply

func (mr *MockContextMockRecorder) EditOrReply(what any, opts ...any) *gomock.Call

EditOrReply indicates an expected call of EditOrReply.

func (*MockContextMockRecorder) EditOrSend

func (mr *MockContextMockRecorder) EditOrSend(what any, opts ...any) *gomock.Call

EditOrSend indicates an expected call of EditOrSend.

func (*MockContextMockRecorder) Entities

func (mr *MockContextMockRecorder) Entities() *gomock.Call

Entities indicates an expected call of Entities.

func (*MockContextMockRecorder) Forward

func (mr *MockContextMockRecorder) Forward(msg any, opts ...any) *gomock.Call

Forward indicates an expected call of Forward.

func (*MockContextMockRecorder) ForwardTo

func (mr *MockContextMockRecorder) ForwardTo(to any, opts ...any) *gomock.Call

ForwardTo indicates an expected call of ForwardTo.

func (*MockContextMockRecorder) Get

func (mr *MockContextMockRecorder) Get(key any) *gomock.Call

Get indicates an expected call of Get.

func (*MockContextMockRecorder) InlineResult

func (mr *MockContextMockRecorder) InlineResult() *gomock.Call

InlineResult indicates an expected call of InlineResult.

func (*MockContextMockRecorder) Message

func (mr *MockContextMockRecorder) Message() *gomock.Call

Message indicates an expected call of Message.

func (*MockContextMockRecorder) Migration

func (mr *MockContextMockRecorder) Migration() *gomock.Call

Migration indicates an expected call of Migration.

func (*MockContextMockRecorder) Notify

func (mr *MockContextMockRecorder) Notify(action any) *gomock.Call

Notify indicates an expected call of Notify.

func (*MockContextMockRecorder) Poll

func (mr *MockContextMockRecorder) Poll() *gomock.Call

Poll indicates an expected call of Poll.

func (*MockContextMockRecorder) PollAnswer

func (mr *MockContextMockRecorder) PollAnswer() *gomock.Call

PollAnswer indicates an expected call of PollAnswer.

func (*MockContextMockRecorder) PreCheckoutQuery

func (mr *MockContextMockRecorder) PreCheckoutQuery() *gomock.Call

PreCheckoutQuery indicates an expected call of PreCheckoutQuery.

func (*MockContextMockRecorder) Query

func (mr *MockContextMockRecorder) Query() *gomock.Call

Query indicates an expected call of Query.

func (*MockContextMockRecorder) Recipient

func (mr *MockContextMockRecorder) Recipient() *gomock.Call

Recipient indicates an expected call of Recipient.

func (*MockContextMockRecorder) Reply

func (mr *MockContextMockRecorder) Reply(what any, opts ...any) *gomock.Call

Reply indicates an expected call of Reply.

func (*MockContextMockRecorder) Respond

func (mr *MockContextMockRecorder) Respond(resp ...any) *gomock.Call

Respond indicates an expected call of Respond.

func (*MockContextMockRecorder) RespondAlert

func (mr *MockContextMockRecorder) RespondAlert(text any) *gomock.Call

RespondAlert indicates an expected call of RespondAlert.

func (*MockContextMockRecorder) RespondText

func (mr *MockContextMockRecorder) RespondText(text any) *gomock.Call

RespondText indicates an expected call of RespondText.

func (*MockContextMockRecorder) Send

func (mr *MockContextMockRecorder) Send(what any, opts ...any) *gomock.Call

Send indicates an expected call of Send.

func (*MockContextMockRecorder) SendAlbum

func (mr *MockContextMockRecorder) SendAlbum(a any, opts ...any) *gomock.Call

SendAlbum indicates an expected call of SendAlbum.

func (*MockContextMockRecorder) Sender

func (mr *MockContextMockRecorder) Sender() *gomock.Call

Sender indicates an expected call of Sender.

func (*MockContextMockRecorder) Set

func (mr *MockContextMockRecorder) Set(key, val any) *gomock.Call

Set indicates an expected call of Set.

func (*MockContextMockRecorder) Ship

func (mr *MockContextMockRecorder) Ship(what ...any) *gomock.Call

Ship indicates an expected call of Ship.

func (*MockContextMockRecorder) ShippingQuery

func (mr *MockContextMockRecorder) ShippingQuery() *gomock.Call

ShippingQuery indicates an expected call of ShippingQuery.

func (*MockContextMockRecorder) Text

func (mr *MockContextMockRecorder) Text() *gomock.Call

Text indicates an expected call of Text.

func (*MockContextMockRecorder) Topic

func (mr *MockContextMockRecorder) Topic() *gomock.Call

Topic indicates an expected call of Topic.

func (*MockContextMockRecorder) Update

func (mr *MockContextMockRecorder) Update() *gomock.Call

Update indicates an expected call of Update.

Jump to

Keyboard shortcuts

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