mock_botsfw

package
v0.2.21 Latest Latest
Warning

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

Go to latest
Published: May 30, 2025 License: MIT Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package mock_botsfw is a generated GoMock package.

Package mock_botsfw is a generated GoMock package.

Package mock_botsfw is a generated GoMock package.

Package mock_botsfw is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockBotHost

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

MockBotHost is a mock of BotHost interface.

func NewMockBotHost

func NewMockBotHost(ctrl *gomock.Controller) *MockBotHost

NewMockBotHost creates a new mock instance.

func (*MockBotHost) Context

func (m *MockBotHost) Context(r *http.Request) context.Context

Context mocks base method.

func (*MockBotHost) EXPECT

func (m *MockBotHost) EXPECT() *MockBotHostMockRecorder

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

func (*MockBotHost) GetHTTPClient

func (m *MockBotHost) GetHTTPClient(c context.Context) *http.Client

GetHTTPClient mocks base method.

type MockBotHostMockRecorder

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

MockBotHostMockRecorder is the mock recorder for MockBotHost.

func (*MockBotHostMockRecorder) Context

func (mr *MockBotHostMockRecorder) Context(r any) *gomock.Call

Context indicates an expected call of Context.

func (*MockBotHostMockRecorder) GetHTTPClient

func (mr *MockBotHostMockRecorder) GetHTTPClient(c any) *gomock.Call

GetHTTPClient indicates an expected call of GetHTTPClient.

type MockBotPlatform

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

MockBotPlatform is a mock of BotPlatform interface.

func NewMockBotPlatform

func NewMockBotPlatform(ctrl *gomock.Controller) *MockBotPlatform

NewMockBotPlatform creates a new mock instance.

func (*MockBotPlatform) EXPECT

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

func (*MockBotPlatform) ID

func (m *MockBotPlatform) ID() string

ID mocks base method.

func (*MockBotPlatform) Version

func (m *MockBotPlatform) Version() string

Version mocks base method.

type MockBotPlatformMockRecorder

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

MockBotPlatformMockRecorder is the mock recorder for MockBotPlatform.

func (*MockBotPlatformMockRecorder) ID

ID indicates an expected call of ID.

func (*MockBotPlatformMockRecorder) Version

func (mr *MockBotPlatformMockRecorder) Version() *gomock.Call

Version indicates an expected call of Version.

type MockWebhookContext

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

MockWebhookContext is a mock of WebhookContext interface.

func NewMockWebhookContext

func NewMockWebhookContext(ctrl *gomock.Controller) *MockWebhookContext

NewMockWebhookContext creates a new mock instance.

func (*MockWebhookContext) Analytics added in v0.2.18

Analytics mocks base method.

func (*MockWebhookContext) AppContext

func (m *MockWebhookContext) AppContext() botsfw.AppContext

AppContext mocks base method.

func (*MockWebhookContext) AppUserData

func (m *MockWebhookContext) AppUserData() (botsfwmodels.AppUserData, error)

AppUserData mocks base method.

func (*MockWebhookContext) AppUserID

func (m *MockWebhookContext) AppUserID() string

AppUserID mocks base method.

func (*MockWebhookContext) BotContext

func (m *MockWebhookContext) BotContext() botsfw.BotContext

BotContext mocks base method.

func (*MockWebhookContext) BotPlatform

func (m *MockWebhookContext) BotPlatform() botsfw.BotPlatform

BotPlatform mocks base method.

func (*MockWebhookContext) ChatData

ChatData mocks base method.

func (*MockWebhookContext) CommandText

func (m *MockWebhookContext) CommandText(title, icon string) string

CommandText mocks base method.

func (*MockWebhookContext) Context

func (m *MockWebhookContext) Context() context.Context

Context mocks base method.

func (*MockWebhookContext) DB

func (m *MockWebhookContext) DB() dal.DB

DB mocks base method.

func (*MockWebhookContext) EXPECT

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

func (*MockWebhookContext) Environment

func (m *MockWebhookContext) Environment() string

Environment mocks base method.

func (*MockWebhookContext) ExecutionContext

func (m *MockWebhookContext) ExecutionContext() botsfw.ExecutionContext

ExecutionContext mocks base method.

func (*MockWebhookContext) GetBotCode

func (m *MockWebhookContext) GetBotCode() string

GetBotCode mocks base method.

func (*MockWebhookContext) GetBotSettings

func (m *MockWebhookContext) GetBotSettings() *botsfw.BotSettings

GetBotSettings mocks base method.

func (*MockWebhookContext) GetBotUser added in v0.2.5

func (m *MockWebhookContext) GetBotUser() (botsdal.BotUser, error)

GetBotUser mocks base method.

func (*MockWebhookContext) GetBotUserForUpdate added in v0.2.5

func (m *MockWebhookContext) GetBotUserForUpdate(ctx context.Context, tx dal.ReadwriteTransaction) (botsdal.BotUser, error)

GetBotUserForUpdate mocks base method.

func (*MockWebhookContext) GetBotUserID

func (m *MockWebhookContext) GetBotUserID() string

GetBotUserID mocks base method.

func (*MockWebhookContext) Input

Input mocks base method.

func (*MockWebhookContext) IsInGroup

func (m *MockWebhookContext) IsInGroup() (bool, error)

IsInGroup mocks base method.

func (*MockWebhookContext) IsNewerThen

func (m *MockWebhookContext) IsNewerThen(chatEntity botsfwmodels.BotChatData) bool

IsNewerThen mocks base method.

func (*MockWebhookContext) Locale

func (m *MockWebhookContext) Locale() i18n.Locale

Locale mocks base method.

func (*MockWebhookContext) MustBotChatID

func (m *MockWebhookContext) MustBotChatID() string

MustBotChatID mocks base method.

func (*MockWebhookContext) NewEditMessage

func (m *MockWebhookContext) NewEditMessage(text string, format botsfw.MessageFormat) (botsfw.MessageFromBot, error)

NewEditMessage mocks base method.

func (*MockWebhookContext) NewMessage

func (m *MockWebhookContext) NewMessage(text string) botsfw.MessageFromBot

NewMessage mocks base method.

func (*MockWebhookContext) NewMessageByCode

func (m *MockWebhookContext) NewMessageByCode(messageCode string, a ...any) botsfw.MessageFromBot

NewMessageByCode mocks base method.

func (*MockWebhookContext) RecordsFieldsSetter

func (m *MockWebhookContext) RecordsFieldsSetter() botsfw.BotRecordsFieldsSetter

RecordsFieldsSetter mocks base method.

func (*MockWebhookContext) Request

func (m *MockWebhookContext) Request() *http.Request

Request mocks base method.

func (*MockWebhookContext) Responder

Responder mocks base method.

func (*MockWebhookContext) SaveBotChat

func (m *MockWebhookContext) SaveBotChat() error

SaveBotChat mocks base method.

func (*MockWebhookContext) SetContext

func (m *MockWebhookContext) SetContext(c context.Context)

SetContext mocks base method.

func (*MockWebhookContext) SetLocale

func (m *MockWebhookContext) SetLocale(code5 string) error

SetLocale mocks base method.

func (*MockWebhookContext) Translate

func (m *MockWebhookContext) Translate(key string, args ...any) string

Translate mocks base method.

func (*MockWebhookContext) TranslateNoWarning

func (m *MockWebhookContext) TranslateNoWarning(key string, args ...any) string

TranslateNoWarning mocks base method.

func (*MockWebhookContext) TranslateWithMap added in v0.2.21

func (m *MockWebhookContext) TranslateWithMap(key string, args map[string]string) string

TranslateWithMap mocks base method.

func (*MockWebhookContext) UpdateLastProcessed

func (m *MockWebhookContext) UpdateLastProcessed(chatEntity botsfwmodels.BotChatData) error

UpdateLastProcessed mocks base method.

type MockWebhookContextMockRecorder

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

MockWebhookContextMockRecorder is the mock recorder for MockWebhookContext.

func (*MockWebhookContextMockRecorder) Analytics added in v0.2.18

func (mr *MockWebhookContextMockRecorder) Analytics() *gomock.Call

Analytics indicates an expected call of Analytics.

func (*MockWebhookContextMockRecorder) AppContext

func (mr *MockWebhookContextMockRecorder) AppContext() *gomock.Call

AppContext indicates an expected call of AppContext.

func (*MockWebhookContextMockRecorder) AppUserData

func (mr *MockWebhookContextMockRecorder) AppUserData() *gomock.Call

AppUserData indicates an expected call of AppUserData.

func (*MockWebhookContextMockRecorder) AppUserID

func (mr *MockWebhookContextMockRecorder) AppUserID() *gomock.Call

AppUserID indicates an expected call of AppUserID.

func (*MockWebhookContextMockRecorder) BotContext

func (mr *MockWebhookContextMockRecorder) BotContext() *gomock.Call

BotContext indicates an expected call of BotContext.

func (*MockWebhookContextMockRecorder) BotPlatform

func (mr *MockWebhookContextMockRecorder) BotPlatform() *gomock.Call

BotPlatform indicates an expected call of BotPlatform.

func (*MockWebhookContextMockRecorder) ChatData

func (mr *MockWebhookContextMockRecorder) ChatData() *gomock.Call

ChatData indicates an expected call of ChatData.

func (*MockWebhookContextMockRecorder) CommandText

func (mr *MockWebhookContextMockRecorder) CommandText(title, icon any) *gomock.Call

CommandText indicates an expected call of CommandText.

func (*MockWebhookContextMockRecorder) Context

Context indicates an expected call of Context.

func (*MockWebhookContextMockRecorder) DB

DB indicates an expected call of DB.

func (*MockWebhookContextMockRecorder) Environment

func (mr *MockWebhookContextMockRecorder) Environment() *gomock.Call

Environment indicates an expected call of Environment.

func (*MockWebhookContextMockRecorder) ExecutionContext

func (mr *MockWebhookContextMockRecorder) ExecutionContext() *gomock.Call

ExecutionContext indicates an expected call of ExecutionContext.

func (*MockWebhookContextMockRecorder) GetBotCode

func (mr *MockWebhookContextMockRecorder) GetBotCode() *gomock.Call

GetBotCode indicates an expected call of GetBotCode.

func (*MockWebhookContextMockRecorder) GetBotSettings

func (mr *MockWebhookContextMockRecorder) GetBotSettings() *gomock.Call

GetBotSettings indicates an expected call of GetBotSettings.

func (*MockWebhookContextMockRecorder) GetBotUser added in v0.2.5

func (mr *MockWebhookContextMockRecorder) GetBotUser() *gomock.Call

GetBotUser indicates an expected call of GetBotUser.

func (*MockWebhookContextMockRecorder) GetBotUserForUpdate added in v0.2.5

func (mr *MockWebhookContextMockRecorder) GetBotUserForUpdate(ctx, tx any) *gomock.Call

GetBotUserForUpdate indicates an expected call of GetBotUserForUpdate.

func (*MockWebhookContextMockRecorder) GetBotUserID

func (mr *MockWebhookContextMockRecorder) GetBotUserID() *gomock.Call

GetBotUserID indicates an expected call of GetBotUserID.

func (*MockWebhookContextMockRecorder) Input

Input indicates an expected call of Input.

func (*MockWebhookContextMockRecorder) IsInGroup

func (mr *MockWebhookContextMockRecorder) IsInGroup() *gomock.Call

IsInGroup indicates an expected call of IsInGroup.

func (*MockWebhookContextMockRecorder) IsNewerThen

func (mr *MockWebhookContextMockRecorder) IsNewerThen(chatEntity any) *gomock.Call

IsNewerThen indicates an expected call of IsNewerThen.

func (*MockWebhookContextMockRecorder) Locale

Locale indicates an expected call of Locale.

func (*MockWebhookContextMockRecorder) MustBotChatID

func (mr *MockWebhookContextMockRecorder) MustBotChatID() *gomock.Call

MustBotChatID indicates an expected call of MustBotChatID.

func (*MockWebhookContextMockRecorder) NewEditMessage

func (mr *MockWebhookContextMockRecorder) NewEditMessage(text, format any) *gomock.Call

NewEditMessage indicates an expected call of NewEditMessage.

func (*MockWebhookContextMockRecorder) NewMessage

func (mr *MockWebhookContextMockRecorder) NewMessage(text any) *gomock.Call

NewMessage indicates an expected call of NewMessage.

func (*MockWebhookContextMockRecorder) NewMessageByCode

func (mr *MockWebhookContextMockRecorder) NewMessageByCode(messageCode any, a ...any) *gomock.Call

NewMessageByCode indicates an expected call of NewMessageByCode.

func (*MockWebhookContextMockRecorder) RecordsFieldsSetter

func (mr *MockWebhookContextMockRecorder) RecordsFieldsSetter() *gomock.Call

RecordsFieldsSetter indicates an expected call of RecordsFieldsSetter.

func (*MockWebhookContextMockRecorder) Request

Request indicates an expected call of Request.

func (*MockWebhookContextMockRecorder) Responder

func (mr *MockWebhookContextMockRecorder) Responder() *gomock.Call

Responder indicates an expected call of Responder.

func (*MockWebhookContextMockRecorder) SaveBotChat

func (mr *MockWebhookContextMockRecorder) SaveBotChat() *gomock.Call

SaveBotChat indicates an expected call of SaveBotChat.

func (*MockWebhookContextMockRecorder) SetContext

func (mr *MockWebhookContextMockRecorder) SetContext(c any) *gomock.Call

SetContext indicates an expected call of SetContext.

func (*MockWebhookContextMockRecorder) SetLocale

func (mr *MockWebhookContextMockRecorder) SetLocale(code5 any) *gomock.Call

SetLocale indicates an expected call of SetLocale.

func (*MockWebhookContextMockRecorder) Translate

func (mr *MockWebhookContextMockRecorder) Translate(key any, args ...any) *gomock.Call

Translate indicates an expected call of Translate.

func (*MockWebhookContextMockRecorder) TranslateNoWarning

func (mr *MockWebhookContextMockRecorder) TranslateNoWarning(key any, args ...any) *gomock.Call

TranslateNoWarning indicates an expected call of TranslateNoWarning.

func (*MockWebhookContextMockRecorder) TranslateWithMap added in v0.2.21

func (mr *MockWebhookContextMockRecorder) TranslateWithMap(key, args any) *gomock.Call

TranslateWithMap indicates an expected call of TranslateWithMap.

func (*MockWebhookContextMockRecorder) UpdateLastProcessed

func (mr *MockWebhookContextMockRecorder) UpdateLastProcessed(chatEntity any) *gomock.Call

UpdateLastProcessed indicates an expected call of UpdateLastProcessed.

type MockWebhookResponder

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

MockWebhookResponder is a mock of WebhookResponder interface.

func NewMockWebhookResponder

func NewMockWebhookResponder(ctrl *gomock.Controller) *MockWebhookResponder

NewMockWebhookResponder creates a new mock instance.

func (*MockWebhookResponder) DeleteMessage added in v0.2.5

func (m *MockWebhookResponder) DeleteMessage(c context.Context, messageID string) error

DeleteMessage mocks base method.

func (*MockWebhookResponder) EXPECT

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

func (*MockWebhookResponder) SendMessage

SendMessage mocks base method.

type MockWebhookResponderMockRecorder

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

MockWebhookResponderMockRecorder is the mock recorder for MockWebhookResponder.

func (*MockWebhookResponderMockRecorder) DeleteMessage added in v0.2.5

func (mr *MockWebhookResponderMockRecorder) DeleteMessage(c, messageID any) *gomock.Call

DeleteMessage indicates an expected call of DeleteMessage.

func (*MockWebhookResponderMockRecorder) SendMessage

func (mr *MockWebhookResponderMockRecorder) SendMessage(c, m, channel any) *gomock.Call

SendMessage indicates an expected call of SendMessage.

Jump to

Keyboard shortcuts

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