Documentation
¶
Index ¶
- type MessageService
- type MessageService_Expecter
- type MessageService_GetMessageByLink_Call
- func (_c *MessageService_GetMessageByLink_Call) Return(_a0 *client.Message) *MessageService_GetMessageByLink_Call
- func (_c *MessageService_GetMessageByLink_Call) Run(run func(url string)) *MessageService_GetMessageByLink_Call
- func (_c *MessageService_GetMessageByLink_Call) RunAndReturn(run func(string) *client.Message) *MessageService_GetMessageByLink_Call
- type MessageService_GetReplyMarkupData_Call
- func (_c *MessageService_GetReplyMarkupData_Call) Return(_a0 []byte) *MessageService_GetReplyMarkupData_Call
- func (_c *MessageService_GetReplyMarkupData_Call) Run(run func(message *client.Message)) *MessageService_GetReplyMarkupData_Call
- func (_c *MessageService_GetReplyMarkupData_Call) RunAndReturn(run func(*client.Message) []byte) *MessageService_GetReplyMarkupData_Call
- type StorageService
- type StorageService_Expecter
- type StorageService_GetCopiedMessageIds_Call
- func (_c *StorageService_GetCopiedMessageIds_Call) Return(_a0 []string) *StorageService_GetCopiedMessageIds_Call
- func (_c *StorageService_GetCopiedMessageIds_Call) Run(run func(chatId int64, messageId int64)) *StorageService_GetCopiedMessageIds_Call
- func (_c *StorageService_GetCopiedMessageIds_Call) RunAndReturn(run func(int64, int64) []string) *StorageService_GetCopiedMessageIds_Call
- type StorageService_GetNewMessageId_Call
- func (_c *StorageService_GetNewMessageId_Call) Return(_a0 int64) *StorageService_GetNewMessageId_Call
- func (_c *StorageService_GetNewMessageId_Call) Run(run func(chatId int64, tmpMessageId int64)) *StorageService_GetNewMessageId_Call
- func (_c *StorageService_GetNewMessageId_Call) RunAndReturn(run func(int64, int64) int64) *StorageService_GetNewMessageId_Call
- type TelegramRepo
- func (_m *TelegramRepo) EXPECT() *TelegramRepo_Expecter
- func (_m *TelegramRepo) GetCallbackQueryAnswer(_a0 *client.GetCallbackQueryAnswerRequest) (*client.CallbackQueryAnswer, error)
- func (_m *TelegramRepo) GetChat(_a0 *client.GetChatRequest) (*client.Chat, error)
- func (_m *TelegramRepo) GetMessageLink(_a0 *client.GetMessageLinkRequest) (*client.MessageLink, error)
- func (_m *TelegramRepo) GetMessageLinkInfo(_a0 *client.GetMessageLinkInfoRequest) (*client.MessageLinkInfo, error)
- func (_m *TelegramRepo) ParseTextEntities(_a0 *client.ParseTextEntitiesRequest) (*client.FormattedText, error)
- type TelegramRepo_Expecter
- func (_e *TelegramRepo_Expecter) GetCallbackQueryAnswer(_a0 interface{}) *TelegramRepo_GetCallbackQueryAnswer_Call
- func (_e *TelegramRepo_Expecter) GetChat(_a0 interface{}) *TelegramRepo_GetChat_Call
- func (_e *TelegramRepo_Expecter) GetMessageLink(_a0 interface{}) *TelegramRepo_GetMessageLink_Call
- func (_e *TelegramRepo_Expecter) GetMessageLinkInfo(_a0 interface{}) *TelegramRepo_GetMessageLinkInfo_Call
- func (_e *TelegramRepo_Expecter) ParseTextEntities(_a0 interface{}) *TelegramRepo_ParseTextEntities_Call
- type TelegramRepo_GetCallbackQueryAnswer_Call
- func (_c *TelegramRepo_GetCallbackQueryAnswer_Call) Return(_a0 *client.CallbackQueryAnswer, _a1 error) *TelegramRepo_GetCallbackQueryAnswer_Call
- func (_c *TelegramRepo_GetCallbackQueryAnswer_Call) Run(run func(_a0 *client.GetCallbackQueryAnswerRequest)) *TelegramRepo_GetCallbackQueryAnswer_Call
- func (_c *TelegramRepo_GetCallbackQueryAnswer_Call) RunAndReturn(...) *TelegramRepo_GetCallbackQueryAnswer_Call
- type TelegramRepo_GetChat_Call
- func (_c *TelegramRepo_GetChat_Call) Return(_a0 *client.Chat, _a1 error) *TelegramRepo_GetChat_Call
- func (_c *TelegramRepo_GetChat_Call) Run(run func(_a0 *client.GetChatRequest)) *TelegramRepo_GetChat_Call
- func (_c *TelegramRepo_GetChat_Call) RunAndReturn(run func(*client.GetChatRequest) (*client.Chat, error)) *TelegramRepo_GetChat_Call
- type TelegramRepo_GetMessageLinkInfo_Call
- func (_c *TelegramRepo_GetMessageLinkInfo_Call) Return(_a0 *client.MessageLinkInfo, _a1 error) *TelegramRepo_GetMessageLinkInfo_Call
- func (_c *TelegramRepo_GetMessageLinkInfo_Call) Run(run func(_a0 *client.GetMessageLinkInfoRequest)) *TelegramRepo_GetMessageLinkInfo_Call
- func (_c *TelegramRepo_GetMessageLinkInfo_Call) RunAndReturn(run func(*client.GetMessageLinkInfoRequest) (*client.MessageLinkInfo, error)) *TelegramRepo_GetMessageLinkInfo_Call
- type TelegramRepo_GetMessageLink_Call
- func (_c *TelegramRepo_GetMessageLink_Call) Return(_a0 *client.MessageLink, _a1 error) *TelegramRepo_GetMessageLink_Call
- func (_c *TelegramRepo_GetMessageLink_Call) Run(run func(_a0 *client.GetMessageLinkRequest)) *TelegramRepo_GetMessageLink_Call
- func (_c *TelegramRepo_GetMessageLink_Call) RunAndReturn(run func(*client.GetMessageLinkRequest) (*client.MessageLink, error)) *TelegramRepo_GetMessageLink_Call
- type TelegramRepo_ParseTextEntities_Call
- func (_c *TelegramRepo_ParseTextEntities_Call) Return(_a0 *client.FormattedText, _a1 error) *TelegramRepo_ParseTextEntities_Call
- func (_c *TelegramRepo_ParseTextEntities_Call) Run(run func(_a0 *client.ParseTextEntitiesRequest)) *TelegramRepo_ParseTextEntities_Call
- func (_c *TelegramRepo_ParseTextEntities_Call) RunAndReturn(run func(*client.ParseTextEntitiesRequest) (*client.FormattedText, error)) *TelegramRepo_ParseTextEntities_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MessageService ¶
MessageService is an autogenerated mock type for the messageService type
func NewMessageService ¶
func NewMessageService(t interface {
mock.TestingT
Cleanup(func())
}) *MessageService
NewMessageService creates a new instance of MessageService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*MessageService) EXPECT ¶
func (_m *MessageService) EXPECT() *MessageService_Expecter
func (*MessageService) GetMessageByLink ¶
func (_m *MessageService) GetMessageByLink(url string) *client.Message
GetMessageByLink provides a mock function with given fields: url
func (*MessageService) GetReplyMarkupData ¶
func (_m *MessageService) GetReplyMarkupData(message *client.Message) []byte
GetReplyMarkupData provides a mock function with given fields: message
type MessageService_Expecter ¶
type MessageService_Expecter struct {
// contains filtered or unexported fields
}
func (*MessageService_Expecter) GetMessageByLink ¶
func (_e *MessageService_Expecter) GetMessageByLink(url interface{}) *MessageService_GetMessageByLink_Call
GetMessageByLink is a helper method to define mock.On call
- url string
func (*MessageService_Expecter) GetReplyMarkupData ¶
func (_e *MessageService_Expecter) GetReplyMarkupData(message interface{}) *MessageService_GetReplyMarkupData_Call
GetReplyMarkupData is a helper method to define mock.On call
- message *client.Message
type MessageService_GetMessageByLink_Call ¶
MessageService_GetMessageByLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMessageByLink'
func (*MessageService_GetMessageByLink_Call) Return ¶
func (_c *MessageService_GetMessageByLink_Call) Return(_a0 *client.Message) *MessageService_GetMessageByLink_Call
func (*MessageService_GetMessageByLink_Call) Run ¶
func (_c *MessageService_GetMessageByLink_Call) Run(run func(url string)) *MessageService_GetMessageByLink_Call
func (*MessageService_GetMessageByLink_Call) RunAndReturn ¶
func (_c *MessageService_GetMessageByLink_Call) RunAndReturn(run func(string) *client.Message) *MessageService_GetMessageByLink_Call
type MessageService_GetReplyMarkupData_Call ¶
MessageService_GetReplyMarkupData_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetReplyMarkupData'
func (*MessageService_GetReplyMarkupData_Call) Return ¶
func (_c *MessageService_GetReplyMarkupData_Call) Return(_a0 []byte) *MessageService_GetReplyMarkupData_Call
func (*MessageService_GetReplyMarkupData_Call) Run ¶
func (_c *MessageService_GetReplyMarkupData_Call) Run(run func(message *client.Message)) *MessageService_GetReplyMarkupData_Call
func (*MessageService_GetReplyMarkupData_Call) RunAndReturn ¶
func (_c *MessageService_GetReplyMarkupData_Call) RunAndReturn(run func(*client.Message) []byte) *MessageService_GetReplyMarkupData_Call
type StorageService ¶
StorageService is an autogenerated mock type for the storageService type
func NewStorageService ¶
func NewStorageService(t interface {
mock.TestingT
Cleanup(func())
}) *StorageService
NewStorageService creates a new instance of StorageService. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*StorageService) EXPECT ¶
func (_m *StorageService) EXPECT() *StorageService_Expecter
func (*StorageService) GetCopiedMessageIds ¶
func (_m *StorageService) GetCopiedMessageIds(chatId int64, messageId int64) []string
GetCopiedMessageIds provides a mock function with given fields: chatId, messageId
func (*StorageService) GetNewMessageId ¶
func (_m *StorageService) GetNewMessageId(chatId int64, tmpMessageId int64) int64
GetNewMessageId provides a mock function with given fields: chatId, tmpMessageId
type StorageService_Expecter ¶
type StorageService_Expecter struct {
// contains filtered or unexported fields
}
func (*StorageService_Expecter) GetCopiedMessageIds ¶
func (_e *StorageService_Expecter) GetCopiedMessageIds(chatId interface{}, messageId interface{}) *StorageService_GetCopiedMessageIds_Call
GetCopiedMessageIds is a helper method to define mock.On call
- chatId int64
- messageId int64
func (*StorageService_Expecter) GetNewMessageId ¶
func (_e *StorageService_Expecter) GetNewMessageId(chatId interface{}, tmpMessageId interface{}) *StorageService_GetNewMessageId_Call
GetNewMessageId is a helper method to define mock.On call
- chatId int64
- tmpMessageId int64
type StorageService_GetCopiedMessageIds_Call ¶
StorageService_GetCopiedMessageIds_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCopiedMessageIds'
func (*StorageService_GetCopiedMessageIds_Call) Return ¶
func (_c *StorageService_GetCopiedMessageIds_Call) Return(_a0 []string) *StorageService_GetCopiedMessageIds_Call
func (*StorageService_GetCopiedMessageIds_Call) Run ¶
func (_c *StorageService_GetCopiedMessageIds_Call) Run(run func(chatId int64, messageId int64)) *StorageService_GetCopiedMessageIds_Call
func (*StorageService_GetCopiedMessageIds_Call) RunAndReturn ¶
func (_c *StorageService_GetCopiedMessageIds_Call) RunAndReturn(run func(int64, int64) []string) *StorageService_GetCopiedMessageIds_Call
type StorageService_GetNewMessageId_Call ¶
StorageService_GetNewMessageId_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetNewMessageId'
func (*StorageService_GetNewMessageId_Call) Return ¶
func (_c *StorageService_GetNewMessageId_Call) Return(_a0 int64) *StorageService_GetNewMessageId_Call
func (*StorageService_GetNewMessageId_Call) Run ¶
func (_c *StorageService_GetNewMessageId_Call) Run(run func(chatId int64, tmpMessageId int64)) *StorageService_GetNewMessageId_Call
func (*StorageService_GetNewMessageId_Call) RunAndReturn ¶
func (_c *StorageService_GetNewMessageId_Call) RunAndReturn(run func(int64, int64) int64) *StorageService_GetNewMessageId_Call
type TelegramRepo ¶
TelegramRepo is an autogenerated mock type for the telegramRepo type
func NewTelegramRepo ¶
func NewTelegramRepo(t interface {
mock.TestingT
Cleanup(func())
}) *TelegramRepo
NewTelegramRepo creates a new instance of TelegramRepo. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*TelegramRepo) EXPECT ¶
func (_m *TelegramRepo) EXPECT() *TelegramRepo_Expecter
func (*TelegramRepo) GetCallbackQueryAnswer ¶
func (_m *TelegramRepo) GetCallbackQueryAnswer(_a0 *client.GetCallbackQueryAnswerRequest) (*client.CallbackQueryAnswer, error)
GetCallbackQueryAnswer provides a mock function with given fields: _a0
func (*TelegramRepo) GetChat ¶
func (_m *TelegramRepo) GetChat(_a0 *client.GetChatRequest) (*client.Chat, error)
GetChat provides a mock function with given fields: _a0
func (*TelegramRepo) GetMessageLink ¶
func (_m *TelegramRepo) GetMessageLink(_a0 *client.GetMessageLinkRequest) (*client.MessageLink, error)
GetMessageLink provides a mock function with given fields: _a0
func (*TelegramRepo) GetMessageLinkInfo ¶
func (_m *TelegramRepo) GetMessageLinkInfo(_a0 *client.GetMessageLinkInfoRequest) (*client.MessageLinkInfo, error)
GetMessageLinkInfo provides a mock function with given fields: _a0
func (*TelegramRepo) ParseTextEntities ¶
func (_m *TelegramRepo) ParseTextEntities(_a0 *client.ParseTextEntitiesRequest) (*client.FormattedText, error)
ParseTextEntities provides a mock function with given fields: _a0
type TelegramRepo_Expecter ¶
type TelegramRepo_Expecter struct {
// contains filtered or unexported fields
}
func (*TelegramRepo_Expecter) GetCallbackQueryAnswer ¶
func (_e *TelegramRepo_Expecter) GetCallbackQueryAnswer(_a0 interface{}) *TelegramRepo_GetCallbackQueryAnswer_Call
GetCallbackQueryAnswer is a helper method to define mock.On call
- _a0 *client.GetCallbackQueryAnswerRequest
func (*TelegramRepo_Expecter) GetChat ¶
func (_e *TelegramRepo_Expecter) GetChat(_a0 interface{}) *TelegramRepo_GetChat_Call
GetChat is a helper method to define mock.On call
- _a0 *client.GetChatRequest
func (*TelegramRepo_Expecter) GetMessageLink ¶
func (_e *TelegramRepo_Expecter) GetMessageLink(_a0 interface{}) *TelegramRepo_GetMessageLink_Call
GetMessageLink is a helper method to define mock.On call
- _a0 *client.GetMessageLinkRequest
func (*TelegramRepo_Expecter) GetMessageLinkInfo ¶
func (_e *TelegramRepo_Expecter) GetMessageLinkInfo(_a0 interface{}) *TelegramRepo_GetMessageLinkInfo_Call
GetMessageLinkInfo is a helper method to define mock.On call
- _a0 *client.GetMessageLinkInfoRequest
func (*TelegramRepo_Expecter) ParseTextEntities ¶
func (_e *TelegramRepo_Expecter) ParseTextEntities(_a0 interface{}) *TelegramRepo_ParseTextEntities_Call
ParseTextEntities is a helper method to define mock.On call
- _a0 *client.ParseTextEntitiesRequest
type TelegramRepo_GetCallbackQueryAnswer_Call ¶
TelegramRepo_GetCallbackQueryAnswer_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetCallbackQueryAnswer'
func (*TelegramRepo_GetCallbackQueryAnswer_Call) Return ¶
func (_c *TelegramRepo_GetCallbackQueryAnswer_Call) Return(_a0 *client.CallbackQueryAnswer, _a1 error) *TelegramRepo_GetCallbackQueryAnswer_Call
func (*TelegramRepo_GetCallbackQueryAnswer_Call) Run ¶
func (_c *TelegramRepo_GetCallbackQueryAnswer_Call) Run(run func(_a0 *client.GetCallbackQueryAnswerRequest)) *TelegramRepo_GetCallbackQueryAnswer_Call
func (*TelegramRepo_GetCallbackQueryAnswer_Call) RunAndReturn ¶
func (_c *TelegramRepo_GetCallbackQueryAnswer_Call) RunAndReturn(run func(*client.GetCallbackQueryAnswerRequest) (*client.CallbackQueryAnswer, error)) *TelegramRepo_GetCallbackQueryAnswer_Call
type TelegramRepo_GetChat_Call ¶
TelegramRepo_GetChat_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetChat'
func (*TelegramRepo_GetChat_Call) Return ¶
func (_c *TelegramRepo_GetChat_Call) Return(_a0 *client.Chat, _a1 error) *TelegramRepo_GetChat_Call
func (*TelegramRepo_GetChat_Call) Run ¶
func (_c *TelegramRepo_GetChat_Call) Run(run func(_a0 *client.GetChatRequest)) *TelegramRepo_GetChat_Call
func (*TelegramRepo_GetChat_Call) RunAndReturn ¶
func (_c *TelegramRepo_GetChat_Call) RunAndReturn(run func(*client.GetChatRequest) (*client.Chat, error)) *TelegramRepo_GetChat_Call
type TelegramRepo_GetMessageLinkInfo_Call ¶
TelegramRepo_GetMessageLinkInfo_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMessageLinkInfo'
func (*TelegramRepo_GetMessageLinkInfo_Call) Return ¶
func (_c *TelegramRepo_GetMessageLinkInfo_Call) Return(_a0 *client.MessageLinkInfo, _a1 error) *TelegramRepo_GetMessageLinkInfo_Call
func (*TelegramRepo_GetMessageLinkInfo_Call) Run ¶
func (_c *TelegramRepo_GetMessageLinkInfo_Call) Run(run func(_a0 *client.GetMessageLinkInfoRequest)) *TelegramRepo_GetMessageLinkInfo_Call
func (*TelegramRepo_GetMessageLinkInfo_Call) RunAndReturn ¶
func (_c *TelegramRepo_GetMessageLinkInfo_Call) RunAndReturn(run func(*client.GetMessageLinkInfoRequest) (*client.MessageLinkInfo, error)) *TelegramRepo_GetMessageLinkInfo_Call
type TelegramRepo_GetMessageLink_Call ¶
TelegramRepo_GetMessageLink_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetMessageLink'
func (*TelegramRepo_GetMessageLink_Call) Return ¶
func (_c *TelegramRepo_GetMessageLink_Call) Return(_a0 *client.MessageLink, _a1 error) *TelegramRepo_GetMessageLink_Call
func (*TelegramRepo_GetMessageLink_Call) Run ¶
func (_c *TelegramRepo_GetMessageLink_Call) Run(run func(_a0 *client.GetMessageLinkRequest)) *TelegramRepo_GetMessageLink_Call
func (*TelegramRepo_GetMessageLink_Call) RunAndReturn ¶
func (_c *TelegramRepo_GetMessageLink_Call) RunAndReturn(run func(*client.GetMessageLinkRequest) (*client.MessageLink, error)) *TelegramRepo_GetMessageLink_Call
type TelegramRepo_ParseTextEntities_Call ¶
TelegramRepo_ParseTextEntities_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ParseTextEntities'
func (*TelegramRepo_ParseTextEntities_Call) Return ¶
func (_c *TelegramRepo_ParseTextEntities_Call) Return(_a0 *client.FormattedText, _a1 error) *TelegramRepo_ParseTextEntities_Call
func (*TelegramRepo_ParseTextEntities_Call) Run ¶
func (_c *TelegramRepo_ParseTextEntities_Call) Run(run func(_a0 *client.ParseTextEntitiesRequest)) *TelegramRepo_ParseTextEntities_Call
func (*TelegramRepo_ParseTextEntities_Call) RunAndReturn ¶
func (_c *TelegramRepo_ParseTextEntities_Call) RunAndReturn(run func(*client.ParseTextEntitiesRequest) (*client.FormattedText, error)) *TelegramRepo_ParseTextEntities_Call