mocks

package
v0.0.0-...-1be15b7 Latest Latest
Warning

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

Go to latest
Published: Dec 9, 2022 License: MIT Imports: 7 Imported by: 0

Documentation

Overview

Package mock_helper is a generated GoMock package.

Package mock_tgbotapi is a generated GoMock package.

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 MockBotAPI

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

MockBotAPI is a mock of BotAPI interface

func NewMockBotAPI

func NewMockBotAPI(ctrl *gomock.Controller) *MockBotAPI

NewMockBotAPI creates a new mock instance

func (*MockBotAPI) AnswerCallbackQuery

func (m *MockBotAPI) AnswerCallbackQuery(config telegram_bot_api.CallbackConfig) (telegram_bot_api.APIResponse, error)

AnswerCallbackQuery mocks base method

func (*MockBotAPI) AnswerInlineQuery

AnswerInlineQuery mocks base method

func (*MockBotAPI) AnswerPreCheckoutQuery

func (m *MockBotAPI) AnswerPreCheckoutQuery(config telegram_bot_api.PreCheckoutConfig) (telegram_bot_api.APIResponse, error)

AnswerPreCheckoutQuery mocks base method

func (*MockBotAPI) AnswerShippingQuery

func (m *MockBotAPI) AnswerShippingQuery(config telegram_bot_api.ShippingConfig) (telegram_bot_api.APIResponse, error)

AnswerShippingQuery mocks base method

func (*MockBotAPI) DeleteChatPhoto

DeleteChatPhoto mocks base method

func (*MockBotAPI) DeleteMessage

DeleteMessage mocks base method

func (*MockBotAPI) EXPECT

func (m *MockBotAPI) EXPECT() *MockBotAPIMockRecorder

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

func (*MockBotAPI) GetChat

GetChat mocks base method

func (*MockBotAPI) GetChatAdministrators

func (m *MockBotAPI) GetChatAdministrators(config telegram_bot_api.ChatConfig) ([]telegram_bot_api.ChatMember, error)

GetChatAdministrators mocks base method

func (*MockBotAPI) GetChatMember

GetChatMember mocks base method

func (*MockBotAPI) GetChatMembersCount

func (m *MockBotAPI) GetChatMembersCount(config telegram_bot_api.ChatConfig) (int, error)

GetChatMembersCount mocks base method

func (*MockBotAPI) GetFile

GetFile mocks base method

func (*MockBotAPI) GetFileDirectURL

func (m *MockBotAPI) GetFileDirectURL(fileID string) (string, error)

GetFileDirectURL mocks base method

func (*MockBotAPI) GetGameHighScores

GetGameHighScores mocks base method

func (m *MockBotAPI) GetInviteLink(config telegram_bot_api.ChatConfig) (string, error)

GetInviteLink mocks base method

func (*MockBotAPI) GetMe

func (m *MockBotAPI) GetMe() (telegram_bot_api.User, error)

GetMe mocks base method

func (*MockBotAPI) GetUpdates

GetUpdates mocks base method

func (*MockBotAPI) GetUpdatesChan

GetUpdatesChan mocks base method

func (*MockBotAPI) GetUserProfilePhotos

GetUserProfilePhotos mocks base method

func (*MockBotAPI) GetWebhookInfo

func (m *MockBotAPI) GetWebhookInfo() (telegram_bot_api.WebhookInfo, error)

GetWebhookInfo mocks base method

func (*MockBotAPI) IsMessageToMe

func (m *MockBotAPI) IsMessageToMe(message telegram_bot_api.Message) bool

IsMessageToMe mocks base method

func (*MockBotAPI) KickChatMember

KickChatMember mocks base method

func (*MockBotAPI) LeaveChat

LeaveChat mocks base method

func (*MockBotAPI) ListenForWebhook

func (m *MockBotAPI) ListenForWebhook(pattern string) telegram_bot_api.UpdatesChannel

ListenForWebhook mocks base method

func (*MockBotAPI) MakeRequest

func (m *MockBotAPI) MakeRequest(endpoint string, params url.Values) (telegram_bot_api.APIResponse, error)

MakeRequest mocks base method

func (*MockBotAPI) PinChatMessage

PinChatMessage mocks base method

func (*MockBotAPI) PromoteChatMember

PromoteChatMember mocks base method

func (*MockBotAPI) RemoveWebhook

func (m *MockBotAPI) RemoveWebhook() (telegram_bot_api.APIResponse, error)

RemoveWebhook mocks base method

func (*MockBotAPI) RestrictChatMember

RestrictChatMember mocks base method

func (*MockBotAPI) Send

Send mocks base method

func (*MockBotAPI) SetChatDescription

SetChatDescription mocks base method

func (*MockBotAPI) SetChatPhoto

SetChatPhoto mocks base method

func (*MockBotAPI) SetChatTitle

SetChatTitle mocks base method

func (*MockBotAPI) SetWebhook

SetWebhook mocks base method

func (*MockBotAPI) StopReceivingUpdates

func (m *MockBotAPI) StopReceivingUpdates()

StopReceivingUpdates mocks base method

func (*MockBotAPI) UnbanChatMember

UnbanChatMember mocks base method

func (*MockBotAPI) UnpinChatMessage

UnpinChatMessage mocks base method

func (*MockBotAPI) UploadFile

func (m *MockBotAPI) UploadFile(endpoint string, params map[string]string, fieldname string, file interface{}) (telegram_bot_api.APIResponse, error)

UploadFile mocks base method

type MockBotAPIMockRecorder

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

MockBotAPIMockRecorder is the mock recorder for MockBotAPI

func (*MockBotAPIMockRecorder) AnswerCallbackQuery

func (mr *MockBotAPIMockRecorder) AnswerCallbackQuery(config interface{}) *gomock.Call

AnswerCallbackQuery indicates an expected call of AnswerCallbackQuery

func (*MockBotAPIMockRecorder) AnswerInlineQuery

func (mr *MockBotAPIMockRecorder) AnswerInlineQuery(config interface{}) *gomock.Call

AnswerInlineQuery indicates an expected call of AnswerInlineQuery

func (*MockBotAPIMockRecorder) AnswerPreCheckoutQuery

func (mr *MockBotAPIMockRecorder) AnswerPreCheckoutQuery(config interface{}) *gomock.Call

AnswerPreCheckoutQuery indicates an expected call of AnswerPreCheckoutQuery

func (*MockBotAPIMockRecorder) AnswerShippingQuery

func (mr *MockBotAPIMockRecorder) AnswerShippingQuery(config interface{}) *gomock.Call

AnswerShippingQuery indicates an expected call of AnswerShippingQuery

func (*MockBotAPIMockRecorder) DeleteChatPhoto

func (mr *MockBotAPIMockRecorder) DeleteChatPhoto(config interface{}) *gomock.Call

DeleteChatPhoto indicates an expected call of DeleteChatPhoto

func (*MockBotAPIMockRecorder) DeleteMessage

func (mr *MockBotAPIMockRecorder) DeleteMessage(config interface{}) *gomock.Call

DeleteMessage indicates an expected call of DeleteMessage

func (*MockBotAPIMockRecorder) GetChat

func (mr *MockBotAPIMockRecorder) GetChat(config interface{}) *gomock.Call

GetChat indicates an expected call of GetChat

func (*MockBotAPIMockRecorder) GetChatAdministrators

func (mr *MockBotAPIMockRecorder) GetChatAdministrators(config interface{}) *gomock.Call

GetChatAdministrators indicates an expected call of GetChatAdministrators

func (*MockBotAPIMockRecorder) GetChatMember

func (mr *MockBotAPIMockRecorder) GetChatMember(config interface{}) *gomock.Call

GetChatMember indicates an expected call of GetChatMember

func (*MockBotAPIMockRecorder) GetChatMembersCount

func (mr *MockBotAPIMockRecorder) GetChatMembersCount(config interface{}) *gomock.Call

GetChatMembersCount indicates an expected call of GetChatMembersCount

func (*MockBotAPIMockRecorder) GetFile

func (mr *MockBotAPIMockRecorder) GetFile(config interface{}) *gomock.Call

GetFile indicates an expected call of GetFile

func (*MockBotAPIMockRecorder) GetFileDirectURL

func (mr *MockBotAPIMockRecorder) GetFileDirectURL(fileID interface{}) *gomock.Call

GetFileDirectURL indicates an expected call of GetFileDirectURL

func (*MockBotAPIMockRecorder) GetGameHighScores

func (mr *MockBotAPIMockRecorder) GetGameHighScores(config interface{}) *gomock.Call

GetGameHighScores indicates an expected call of GetGameHighScores

func (mr *MockBotAPIMockRecorder) GetInviteLink(config interface{}) *gomock.Call

GetInviteLink indicates an expected call of GetInviteLink

func (*MockBotAPIMockRecorder) GetMe

func (mr *MockBotAPIMockRecorder) GetMe() *gomock.Call

GetMe indicates an expected call of GetMe

func (*MockBotAPIMockRecorder) GetUpdates

func (mr *MockBotAPIMockRecorder) GetUpdates(config interface{}) *gomock.Call

GetUpdates indicates an expected call of GetUpdates

func (*MockBotAPIMockRecorder) GetUpdatesChan

func (mr *MockBotAPIMockRecorder) GetUpdatesChan(config interface{}) *gomock.Call

GetUpdatesChan indicates an expected call of GetUpdatesChan

func (*MockBotAPIMockRecorder) GetUserProfilePhotos

func (mr *MockBotAPIMockRecorder) GetUserProfilePhotos(config interface{}) *gomock.Call

GetUserProfilePhotos indicates an expected call of GetUserProfilePhotos

func (*MockBotAPIMockRecorder) GetWebhookInfo

func (mr *MockBotAPIMockRecorder) GetWebhookInfo() *gomock.Call

GetWebhookInfo indicates an expected call of GetWebhookInfo

func (*MockBotAPIMockRecorder) IsMessageToMe

func (mr *MockBotAPIMockRecorder) IsMessageToMe(message interface{}) *gomock.Call

IsMessageToMe indicates an expected call of IsMessageToMe

func (*MockBotAPIMockRecorder) KickChatMember

func (mr *MockBotAPIMockRecorder) KickChatMember(config interface{}) *gomock.Call

KickChatMember indicates an expected call of KickChatMember

func (*MockBotAPIMockRecorder) LeaveChat

func (mr *MockBotAPIMockRecorder) LeaveChat(config interface{}) *gomock.Call

LeaveChat indicates an expected call of LeaveChat

func (*MockBotAPIMockRecorder) ListenForWebhook

func (mr *MockBotAPIMockRecorder) ListenForWebhook(pattern interface{}) *gomock.Call

ListenForWebhook indicates an expected call of ListenForWebhook

func (*MockBotAPIMockRecorder) MakeRequest

func (mr *MockBotAPIMockRecorder) MakeRequest(endpoint, params interface{}) *gomock.Call

MakeRequest indicates an expected call of MakeRequest

func (*MockBotAPIMockRecorder) PinChatMessage

func (mr *MockBotAPIMockRecorder) PinChatMessage(config interface{}) *gomock.Call

PinChatMessage indicates an expected call of PinChatMessage

func (*MockBotAPIMockRecorder) PromoteChatMember

func (mr *MockBotAPIMockRecorder) PromoteChatMember(config interface{}) *gomock.Call

PromoteChatMember indicates an expected call of PromoteChatMember

func (*MockBotAPIMockRecorder) RemoveWebhook

func (mr *MockBotAPIMockRecorder) RemoveWebhook() *gomock.Call

RemoveWebhook indicates an expected call of RemoveWebhook

func (*MockBotAPIMockRecorder) RestrictChatMember

func (mr *MockBotAPIMockRecorder) RestrictChatMember(config interface{}) *gomock.Call

RestrictChatMember indicates an expected call of RestrictChatMember

func (*MockBotAPIMockRecorder) Send

func (mr *MockBotAPIMockRecorder) Send(c interface{}) *gomock.Call

Send indicates an expected call of Send

func (*MockBotAPIMockRecorder) SetChatDescription

func (mr *MockBotAPIMockRecorder) SetChatDescription(config interface{}) *gomock.Call

SetChatDescription indicates an expected call of SetChatDescription

func (*MockBotAPIMockRecorder) SetChatPhoto

func (mr *MockBotAPIMockRecorder) SetChatPhoto(config interface{}) *gomock.Call

SetChatPhoto indicates an expected call of SetChatPhoto

func (*MockBotAPIMockRecorder) SetChatTitle

func (mr *MockBotAPIMockRecorder) SetChatTitle(config interface{}) *gomock.Call

SetChatTitle indicates an expected call of SetChatTitle

func (*MockBotAPIMockRecorder) SetWebhook

func (mr *MockBotAPIMockRecorder) SetWebhook(config interface{}) *gomock.Call

SetWebhook indicates an expected call of SetWebhook

func (*MockBotAPIMockRecorder) StopReceivingUpdates

func (mr *MockBotAPIMockRecorder) StopReceivingUpdates() *gomock.Call

StopReceivingUpdates indicates an expected call of StopReceivingUpdates

func (*MockBotAPIMockRecorder) UnbanChatMember

func (mr *MockBotAPIMockRecorder) UnbanChatMember(config interface{}) *gomock.Call

UnbanChatMember indicates an expected call of UnbanChatMember

func (*MockBotAPIMockRecorder) UnpinChatMessage

func (mr *MockBotAPIMockRecorder) UnpinChatMessage(config interface{}) *gomock.Call

UnpinChatMessage indicates an expected call of UnpinChatMessage

func (*MockBotAPIMockRecorder) UploadFile

func (mr *MockBotAPIMockRecorder) UploadFile(endpoint, params, fieldname, file interface{}) *gomock.Call

UploadFile indicates an expected call of UploadFile

type MockI18nHelper

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

MockI18nHelper is a mock of I18nHelper interface.

func NewMockI18nHelper

func NewMockI18nHelper(ctrl *gomock.Controller) *MockI18nHelper

NewMockI18nHelper creates a new mock instance.

func (*MockI18nHelper) EXPECT

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

func (*MockI18nHelper) MustGetLocalizer

func (m *MockI18nHelper) MustGetLocalizer(chatID int64) *i18n.Localizer

MustGetLocalizer mocks base method.

type MockI18nHelperMockRecorder

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

MockI18nHelperMockRecorder is the mock recorder for MockI18nHelper.

func (*MockI18nHelperMockRecorder) MustGetLocalizer

func (mr *MockI18nHelperMockRecorder) MustGetLocalizer(chatID interface{}) *gomock.Call

MustGetLocalizer indicates an expected call of MustGetLocalizer.

type MockLocalizer

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

MockLocalizer is a mock of Localizer interface.

func NewMockLocalizer

func NewMockLocalizer(ctrl *gomock.Controller) *MockLocalizer

NewMockLocalizer creates a new mock instance.

func (*MockLocalizer) EXPECT

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

func (*MockLocalizer) MustLocalize

func (m *MockLocalizer) MustLocalize(config *i18n.LocalizeConfig) string

MustLocalize mocks base method.

type MockLocalizerMockRecorder

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

MockLocalizerMockRecorder is the mock recorder for MockLocalizer.

func (*MockLocalizerMockRecorder) MustLocalize

func (mr *MockLocalizerMockRecorder) MustLocalize(chatID interface{}) *gomock.Call

MustLocalize indicates an expected call of MustLocalize.

type MockUserService

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

MockUserService is a mock of UserService interface.

func NewMockUserService

func NewMockUserService(ctrl *gomock.Controller) *MockUserService

NewMockUserService creates a new mock instance.

func (*MockUserService) Create

func (m *MockUserService) Create(chatID int64) (*models.User, error)

Create mocks base method.

func (*MockUserService) EXPECT

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

func (*MockUserService) Update

func (m *MockUserService) Update(chatID int64, language string) error

Update mocks base method.

type MockUserServiceMockRecorder

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

MockUserServiceMockRecorder is the mock recorder for MockUserService.

func (*MockUserServiceMockRecorder) Create

func (mr *MockUserServiceMockRecorder) Create(chatID interface{}) *gomock.Call

Create indicates an expected call of Create.

func (*MockUserServiceMockRecorder) Update

func (mr *MockUserServiceMockRecorder) Update(chatID, language interface{}) *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