mock_botsfw

package
v0.71.14 Latest Latest
Warning

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

Go to latest
Published: Aug 31, 2025 License: Apache-2.0 Imports: 12 Imported by: 0

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.

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 MockBotContextProvider added in v0.62.0

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

MockBotContextProvider is a mock of BotContextProvider interface.

func NewMockBotContextProvider added in v0.62.0

func NewMockBotContextProvider(ctrl *gomock.Controller) *MockBotContextProvider

NewMockBotContextProvider creates a new mock instance.

func (*MockBotContextProvider) EXPECT added in v0.62.0

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

func (*MockBotContextProvider) GetBotContext added in v0.62.0

func (m *MockBotContextProvider) GetBotContext(ctx context.Context, platformID botsfwconst.Platform, botID string) (*botsfw.BotContext, error)

GetBotContext mocks base method.

type MockBotContextProviderMockRecorder added in v0.62.0

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

MockBotContextProviderMockRecorder is the mock recorder for MockBotContextProvider.

func (*MockBotContextProviderMockRecorder) GetBotContext added in v0.62.0

func (mr *MockBotContextProviderMockRecorder) GetBotContext(ctx, platformID, botID any) *gomock.Call

GetBotContext indicates an expected call of GetBotContext.

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 MockBotProfile added in v0.71.2

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

MockBotProfile is a mock of BotProfile interface.

func NewMockBotProfile added in v0.71.2

func NewMockBotProfile(ctrl *gomock.Controller) *MockBotProfile

NewMockBotProfile creates a new mock instance.

func (*MockBotProfile) DefaultLocale added in v0.71.2

func (m *MockBotProfile) DefaultLocale() i18n.Locale

DefaultLocale mocks base method.

func (*MockBotProfile) EXPECT added in v0.71.2

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

func (*MockBotProfile) GetTranslations added in v0.71.2

func (m *MockBotProfile) GetTranslations() botsfw.BotTranslations

GetTranslations mocks base method.

func (*MockBotProfile) ID added in v0.71.2

func (m *MockBotProfile) ID() string

ID mocks base method.

func (*MockBotProfile) NewAppUserData added in v0.71.2

func (m *MockBotProfile) NewAppUserData() botsfwmodels.AppUserData

NewAppUserData mocks base method.

func (*MockBotProfile) NewBotChatData added in v0.71.2

func (m *MockBotProfile) NewBotChatData() botsfwmodels.BotChatData

NewBotChatData mocks base method.

func (*MockBotProfile) NewPlatformUserData added in v0.71.2

func (m *MockBotProfile) NewPlatformUserData() botsfwmodels.PlatformUserData

NewPlatformUserData mocks base method.

func (*MockBotProfile) Router added in v0.71.2

func (m *MockBotProfile) Router() botsfw.Router

Router mocks base method.

func (*MockBotProfile) SupportedLocales added in v0.71.2

func (m *MockBotProfile) SupportedLocales() []i18n.Locale

SupportedLocales mocks base method.

type MockBotProfileMockRecorder added in v0.71.2

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

MockBotProfileMockRecorder is the mock recorder for MockBotProfile.

func (*MockBotProfileMockRecorder) DefaultLocale added in v0.71.2

func (mr *MockBotProfileMockRecorder) DefaultLocale() *gomock.Call

DefaultLocale indicates an expected call of DefaultLocale.

func (*MockBotProfileMockRecorder) GetTranslations added in v0.71.2

func (mr *MockBotProfileMockRecorder) GetTranslations() *gomock.Call

GetTranslations indicates an expected call of GetTranslations.

func (*MockBotProfileMockRecorder) ID added in v0.71.2

ID indicates an expected call of ID.

func (*MockBotProfileMockRecorder) NewAppUserData added in v0.71.2

func (mr *MockBotProfileMockRecorder) NewAppUserData() *gomock.Call

NewAppUserData indicates an expected call of NewAppUserData.

func (*MockBotProfileMockRecorder) NewBotChatData added in v0.71.2

func (mr *MockBotProfileMockRecorder) NewBotChatData() *gomock.Call

NewBotChatData indicates an expected call of NewBotChatData.

func (*MockBotProfileMockRecorder) NewPlatformUserData added in v0.71.2

func (mr *MockBotProfileMockRecorder) NewPlatformUserData() *gomock.Call

NewPlatformUserData indicates an expected call of NewPlatformUserData.

func (*MockBotProfileMockRecorder) Router added in v0.71.2

func (mr *MockBotProfileMockRecorder) Router() *gomock.Call

Router indicates an expected call of Router.

func (*MockBotProfileMockRecorder) SupportedLocales added in v0.71.2

func (mr *MockBotProfileMockRecorder) SupportedLocales() *gomock.Call

SupportedLocales indicates an expected call of SupportedLocales.

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

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

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

GetBotUser mocks base method.

func (*MockWebhookContext) GetBotUserForUpdate

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) GetTranslator added in v0.61.0

func (m *MockWebhookContext) GetTranslator(locale string) i18n.SingleLocaleTranslator

GetTranslator 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 botmsg.Format) (botmsg.MessageFromBot, error)

NewEditMessage mocks base method.

func (*MockWebhookContext) NewMessage

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

NewMessage mocks base method.

func (*MockWebhookContext) NewMessageByCode

func (m *MockWebhookContext) NewMessageByCode(messageCode string, a ...any) botmsg.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) SetUser added in v0.71.0

func (m *MockWebhookContext) SetUser(id string, data botsfwmodels.AppUserData)

SetUser 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

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

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

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

GetBotUser indicates an expected call of GetBotUser.

func (*MockWebhookContextMockRecorder) GetBotUserForUpdate

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) GetTranslator added in v0.61.0

func (mr *MockWebhookContextMockRecorder) GetTranslator(locale any) *gomock.Call

GetTranslator indicates an expected call of GetTranslator.

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) SetUser added in v0.71.0

func (mr *MockWebhookContextMockRecorder) SetUser(id, data any) *gomock.Call

SetUser indicates an expected call of SetUser.

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

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

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

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