Documentation ¶
Index ¶
- type ChatServiceMock
- func (mmCheckChatAvailability *ChatServiceMock) CheckChatAvailability(ctx context.Context, chatID int64, username string) (err error)
- func (mmCheckChatAvailability *ChatServiceMock) CheckChatAvailabilityAfterCounter() uint64
- func (mmCheckChatAvailability *ChatServiceMock) CheckChatAvailabilityBeforeCounter() uint64
- func (mmCheckCtxUserChatAvailability *ChatServiceMock) CheckCtxUserChatAvailability(ctx context.Context, chatID int64) (err error)
- func (mmCheckCtxUserChatAvailability *ChatServiceMock) CheckCtxUserChatAvailabilityAfterCounter() uint64
- func (mmCheckCtxUserChatAvailability *ChatServiceMock) CheckCtxUserChatAvailabilityBeforeCounter() uint64
- func (mmConnectChat *ChatServiceMock) ConnectChat(stream mm_service.Stream, chatID int64) (err error)
- func (mmConnectChat *ChatServiceMock) ConnectChatAfterCounter() uint64
- func (mmConnectChat *ChatServiceMock) ConnectChatBeforeCounter() uint64
- func (mmCreateChat *ChatServiceMock) CreateChat(ctx context.Context, usernames []string, title string) (i1 int64, err error)
- func (mmCreateChat *ChatServiceMock) CreateChatAfterCounter() uint64
- func (mmCreateChat *ChatServiceMock) CreateChatBeforeCounter() uint64
- func (mmDeleteChat *ChatServiceMock) DeleteChat(ctx context.Context, chatID int64) (err error)
- func (mmDeleteChat *ChatServiceMock) DeleteChatAfterCounter() uint64
- func (mmDeleteChat *ChatServiceMock) DeleteChatBeforeCounter() uint64
- func (mmGetAvailableChatsAndCount *ChatServiceMock) GetAvailableChatsAndCount(ctx context.Context, page int64, pageSize int64) (cpa1 []*serviceModel.Chat, u1 uint64, err error)
- func (mmGetAvailableChatsAndCount *ChatServiceMock) GetAvailableChatsAndCountAfterCounter() uint64
- func (mmGetAvailableChatsAndCount *ChatServiceMock) GetAvailableChatsAndCountBeforeCounter() uint64
- func (mmGetChannels *ChatServiceMock) GetChannels() (m1 map[int64]chan *serviceModel.ChatMessage)
- func (mmGetChannels *ChatServiceMock) GetChannelsAfterCounter() uint64
- func (mmGetChannels *ChatServiceMock) GetChannelsBeforeCounter() uint64
- func (mmGetChatMessagesAndCount *ChatServiceMock) GetChatMessagesAndCount(ctx context.Context, chatID int64, page int64, pageSize int64) (cpa1 []*serviceModel.ChatMessage, u1 uint64, err error)
- func (mmGetChatMessagesAndCount *ChatServiceMock) GetChatMessagesAndCountAfterCounter() uint64
- func (mmGetChatMessagesAndCount *ChatServiceMock) GetChatMessagesAndCountBeforeCounter() uint64
- func (mmInitMessagesChan *ChatServiceMock) InitMessagesChan(chatID int64) (ch1 chan *serviceModel.ChatMessage)
- func (mmInitMessagesChan *ChatServiceMock) InitMessagesChanAfterCounter() uint64
- func (mmInitMessagesChan *ChatServiceMock) InitMessagesChanBeforeCounter() uint64
- func (m *ChatServiceMock) MinimockCheckChatAvailabilityDone() bool
- func (m *ChatServiceMock) MinimockCheckChatAvailabilityInspect()
- func (m *ChatServiceMock) MinimockCheckCtxUserChatAvailabilityDone() bool
- func (m *ChatServiceMock) MinimockCheckCtxUserChatAvailabilityInspect()
- func (m *ChatServiceMock) MinimockConnectChatDone() bool
- func (m *ChatServiceMock) MinimockConnectChatInspect()
- func (m *ChatServiceMock) MinimockCreateChatDone() bool
- func (m *ChatServiceMock) MinimockCreateChatInspect()
- func (m *ChatServiceMock) MinimockDeleteChatDone() bool
- func (m *ChatServiceMock) MinimockDeleteChatInspect()
- func (m *ChatServiceMock) MinimockFinish()
- func (m *ChatServiceMock) MinimockGetAvailableChatsAndCountDone() bool
- func (m *ChatServiceMock) MinimockGetAvailableChatsAndCountInspect()
- func (m *ChatServiceMock) MinimockGetChannelsDone() bool
- func (m *ChatServiceMock) MinimockGetChannelsInspect()
- func (m *ChatServiceMock) MinimockGetChatMessagesAndCountDone() bool
- func (m *ChatServiceMock) MinimockGetChatMessagesAndCountInspect()
- func (m *ChatServiceMock) MinimockInitMessagesChanDone() bool
- func (m *ChatServiceMock) MinimockInitMessagesChanInspect()
- func (m *ChatServiceMock) MinimockSendMessageDone() bool
- func (m *ChatServiceMock) MinimockSendMessageInspect()
- func (m *ChatServiceMock) MinimockWait(timeout mm_time.Duration)
- func (mmSendMessage *ChatServiceMock) SendMessage(ctx context.Context, text string, chatID int64) (err error)
- func (mmSendMessage *ChatServiceMock) SendMessageAfterCounter() uint64
- func (mmSendMessage *ChatServiceMock) SendMessageBeforeCounter() uint64
- type ChatServiceMockCheckChatAvailabilityExpectation
- type ChatServiceMockCheckChatAvailabilityParams
- type ChatServiceMockCheckChatAvailabilityResults
- type ChatServiceMockCheckCtxUserChatAvailabilityExpectation
- type ChatServiceMockCheckCtxUserChatAvailabilityParams
- type ChatServiceMockCheckCtxUserChatAvailabilityResults
- type ChatServiceMockConnectChatExpectation
- type ChatServiceMockConnectChatParams
- type ChatServiceMockConnectChatResults
- type ChatServiceMockCreateChatExpectation
- type ChatServiceMockCreateChatParams
- type ChatServiceMockCreateChatResults
- type ChatServiceMockDeleteChatExpectation
- type ChatServiceMockDeleteChatParams
- type ChatServiceMockDeleteChatResults
- type ChatServiceMockGetAvailableChatsAndCountExpectation
- type ChatServiceMockGetAvailableChatsAndCountParams
- type ChatServiceMockGetAvailableChatsAndCountResults
- type ChatServiceMockGetChannelsExpectation
- type ChatServiceMockGetChannelsResults
- type ChatServiceMockGetChatMessagesAndCountExpectation
- type ChatServiceMockGetChatMessagesAndCountParams
- type ChatServiceMockGetChatMessagesAndCountResults
- type ChatServiceMockInitMessagesChanExpectation
- type ChatServiceMockInitMessagesChanParams
- type ChatServiceMockInitMessagesChanResults
- type ChatServiceMockSendMessageExpectation
- type ChatServiceMockSendMessageParams
- type ChatServiceMockSendMessageResults
- type UserClientMock
- func (mmCheckUsersExistence *UserClientMock) CheckUsersExistence(ctx context.Context, usernames []string) (err error)
- func (mmCheckUsersExistence *UserClientMock) CheckUsersExistenceAfterCounter() uint64
- func (mmCheckUsersExistence *UserClientMock) CheckUsersExistenceBeforeCounter() uint64
- func (m *UserClientMock) MinimockCheckUsersExistenceDone() bool
- func (m *UserClientMock) MinimockCheckUsersExistenceInspect()
- func (m *UserClientMock) MinimockFinish()
- func (m *UserClientMock) MinimockWait(timeout mm_time.Duration)
- type UserClientMockCheckUsersExistenceExpectation
- type UserClientMockCheckUsersExistenceParams
- type UserClientMockCheckUsersExistenceResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatServiceMock ¶
type ChatServiceMock struct { CheckChatAvailabilityMock mChatServiceMockCheckChatAvailability CheckCtxUserChatAvailabilityMock mChatServiceMockCheckCtxUserChatAvailability ConnectChatMock mChatServiceMockConnectChat CreateChatMock mChatServiceMockCreateChat DeleteChatMock mChatServiceMockDeleteChat GetAvailableChatsAndCountMock mChatServiceMockGetAvailableChatsAndCount GetChannelsMock mChatServiceMockGetChannels GetChatMessagesAndCountMock mChatServiceMockGetChatMessagesAndCount InitMessagesChanMock mChatServiceMockInitMessagesChan SendMessageMock mChatServiceMockSendMessage // contains filtered or unexported fields }
ChatServiceMock implements service.ChatService
func NewChatServiceMock ¶
func NewChatServiceMock(t minimock.Tester) *ChatServiceMock
NewChatServiceMock returns a mock for service.ChatService
func (*ChatServiceMock) CheckChatAvailability ¶
func (mmCheckChatAvailability *ChatServiceMock) CheckChatAvailability(ctx context.Context, chatID int64, username string) (err error)
CheckChatAvailability implements service.ChatService
func (*ChatServiceMock) CheckChatAvailabilityAfterCounter ¶
func (mmCheckChatAvailability *ChatServiceMock) CheckChatAvailabilityAfterCounter() uint64
CheckChatAvailabilityAfterCounter returns a count of finished ChatServiceMock.CheckChatAvailability invocations
func (*ChatServiceMock) CheckChatAvailabilityBeforeCounter ¶
func (mmCheckChatAvailability *ChatServiceMock) CheckChatAvailabilityBeforeCounter() uint64
CheckChatAvailabilityBeforeCounter returns a count of ChatServiceMock.CheckChatAvailability invocations
func (*ChatServiceMock) CheckCtxUserChatAvailability ¶
func (mmCheckCtxUserChatAvailability *ChatServiceMock) CheckCtxUserChatAvailability(ctx context.Context, chatID int64) (err error)
CheckCtxUserChatAvailability implements service.ChatService
func (*ChatServiceMock) CheckCtxUserChatAvailabilityAfterCounter ¶
func (mmCheckCtxUserChatAvailability *ChatServiceMock) CheckCtxUserChatAvailabilityAfterCounter() uint64
CheckCtxUserChatAvailabilityAfterCounter returns a count of finished ChatServiceMock.CheckCtxUserChatAvailability invocations
func (*ChatServiceMock) CheckCtxUserChatAvailabilityBeforeCounter ¶
func (mmCheckCtxUserChatAvailability *ChatServiceMock) CheckCtxUserChatAvailabilityBeforeCounter() uint64
CheckCtxUserChatAvailabilityBeforeCounter returns a count of ChatServiceMock.CheckCtxUserChatAvailability invocations
func (*ChatServiceMock) ConnectChat ¶
func (mmConnectChat *ChatServiceMock) ConnectChat(stream mm_service.Stream, chatID int64) (err error)
ConnectChat implements service.ChatService
func (*ChatServiceMock) ConnectChatAfterCounter ¶
func (mmConnectChat *ChatServiceMock) ConnectChatAfterCounter() uint64
ConnectChatAfterCounter returns a count of finished ChatServiceMock.ConnectChat invocations
func (*ChatServiceMock) ConnectChatBeforeCounter ¶
func (mmConnectChat *ChatServiceMock) ConnectChatBeforeCounter() uint64
ConnectChatBeforeCounter returns a count of ChatServiceMock.ConnectChat invocations
func (*ChatServiceMock) CreateChat ¶
func (mmCreateChat *ChatServiceMock) CreateChat(ctx context.Context, usernames []string, title string) (i1 int64, err error)
CreateChat implements service.ChatService
func (*ChatServiceMock) CreateChatAfterCounter ¶
func (mmCreateChat *ChatServiceMock) CreateChatAfterCounter() uint64
CreateChatAfterCounter returns a count of finished ChatServiceMock.CreateChat invocations
func (*ChatServiceMock) CreateChatBeforeCounter ¶
func (mmCreateChat *ChatServiceMock) CreateChatBeforeCounter() uint64
CreateChatBeforeCounter returns a count of ChatServiceMock.CreateChat invocations
func (*ChatServiceMock) DeleteChat ¶
func (mmDeleteChat *ChatServiceMock) DeleteChat(ctx context.Context, chatID int64) (err error)
DeleteChat implements service.ChatService
func (*ChatServiceMock) DeleteChatAfterCounter ¶
func (mmDeleteChat *ChatServiceMock) DeleteChatAfterCounter() uint64
DeleteChatAfterCounter returns a count of finished ChatServiceMock.DeleteChat invocations
func (*ChatServiceMock) DeleteChatBeforeCounter ¶
func (mmDeleteChat *ChatServiceMock) DeleteChatBeforeCounter() uint64
DeleteChatBeforeCounter returns a count of ChatServiceMock.DeleteChat invocations
func (*ChatServiceMock) GetAvailableChatsAndCount ¶
func (mmGetAvailableChatsAndCount *ChatServiceMock) GetAvailableChatsAndCount(ctx context.Context, page int64, pageSize int64) (cpa1 []*serviceModel.Chat, u1 uint64, err error)
GetAvailableChatsAndCount implements service.ChatService
func (*ChatServiceMock) GetAvailableChatsAndCountAfterCounter ¶
func (mmGetAvailableChatsAndCount *ChatServiceMock) GetAvailableChatsAndCountAfterCounter() uint64
GetAvailableChatsAndCountAfterCounter returns a count of finished ChatServiceMock.GetAvailableChatsAndCount invocations
func (*ChatServiceMock) GetAvailableChatsAndCountBeforeCounter ¶
func (mmGetAvailableChatsAndCount *ChatServiceMock) GetAvailableChatsAndCountBeforeCounter() uint64
GetAvailableChatsAndCountBeforeCounter returns a count of ChatServiceMock.GetAvailableChatsAndCount invocations
func (*ChatServiceMock) GetChannels ¶
func (mmGetChannels *ChatServiceMock) GetChannels() (m1 map[int64]chan *serviceModel.ChatMessage)
GetChannels implements service.ChatService
func (*ChatServiceMock) GetChannelsAfterCounter ¶
func (mmGetChannels *ChatServiceMock) GetChannelsAfterCounter() uint64
GetChannelsAfterCounter returns a count of finished ChatServiceMock.GetChannels invocations
func (*ChatServiceMock) GetChannelsBeforeCounter ¶
func (mmGetChannels *ChatServiceMock) GetChannelsBeforeCounter() uint64
GetChannelsBeforeCounter returns a count of ChatServiceMock.GetChannels invocations
func (*ChatServiceMock) GetChatMessagesAndCount ¶
func (mmGetChatMessagesAndCount *ChatServiceMock) GetChatMessagesAndCount(ctx context.Context, chatID int64, page int64, pageSize int64) (cpa1 []*serviceModel.ChatMessage, u1 uint64, err error)
GetChatMessagesAndCount implements service.ChatService
func (*ChatServiceMock) GetChatMessagesAndCountAfterCounter ¶
func (mmGetChatMessagesAndCount *ChatServiceMock) GetChatMessagesAndCountAfterCounter() uint64
GetChatMessagesAndCountAfterCounter returns a count of finished ChatServiceMock.GetChatMessagesAndCount invocations
func (*ChatServiceMock) GetChatMessagesAndCountBeforeCounter ¶
func (mmGetChatMessagesAndCount *ChatServiceMock) GetChatMessagesAndCountBeforeCounter() uint64
GetChatMessagesAndCountBeforeCounter returns a count of ChatServiceMock.GetChatMessagesAndCount invocations
func (*ChatServiceMock) InitMessagesChan ¶
func (mmInitMessagesChan *ChatServiceMock) InitMessagesChan(chatID int64) (ch1 chan *serviceModel.ChatMessage)
InitMessagesChan implements service.ChatService
func (*ChatServiceMock) InitMessagesChanAfterCounter ¶
func (mmInitMessagesChan *ChatServiceMock) InitMessagesChanAfterCounter() uint64
InitMessagesChanAfterCounter returns a count of finished ChatServiceMock.InitMessagesChan invocations
func (*ChatServiceMock) InitMessagesChanBeforeCounter ¶
func (mmInitMessagesChan *ChatServiceMock) InitMessagesChanBeforeCounter() uint64
InitMessagesChanBeforeCounter returns a count of ChatServiceMock.InitMessagesChan invocations
func (*ChatServiceMock) MinimockCheckChatAvailabilityDone ¶
func (m *ChatServiceMock) MinimockCheckChatAvailabilityDone() bool
MinimockCheckChatAvailabilityDone returns true if the count of the CheckChatAvailability invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockCheckChatAvailabilityInspect ¶
func (m *ChatServiceMock) MinimockCheckChatAvailabilityInspect()
MinimockCheckChatAvailabilityInspect logs each unmet expectation
func (*ChatServiceMock) MinimockCheckCtxUserChatAvailabilityDone ¶
func (m *ChatServiceMock) MinimockCheckCtxUserChatAvailabilityDone() bool
MinimockCheckCtxUserChatAvailabilityDone returns true if the count of the CheckCtxUserChatAvailability invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockCheckCtxUserChatAvailabilityInspect ¶
func (m *ChatServiceMock) MinimockCheckCtxUserChatAvailabilityInspect()
MinimockCheckCtxUserChatAvailabilityInspect logs each unmet expectation
func (*ChatServiceMock) MinimockConnectChatDone ¶
func (m *ChatServiceMock) MinimockConnectChatDone() bool
MinimockConnectChatDone returns true if the count of the ConnectChat invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockConnectChatInspect ¶
func (m *ChatServiceMock) MinimockConnectChatInspect()
MinimockConnectChatInspect logs each unmet expectation
func (*ChatServiceMock) MinimockCreateChatDone ¶
func (m *ChatServiceMock) MinimockCreateChatDone() bool
MinimockCreateChatDone returns true if the count of the CreateChat invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockCreateChatInspect ¶
func (m *ChatServiceMock) MinimockCreateChatInspect()
MinimockCreateChatInspect logs each unmet expectation
func (*ChatServiceMock) MinimockDeleteChatDone ¶
func (m *ChatServiceMock) MinimockDeleteChatDone() bool
MinimockDeleteChatDone returns true if the count of the DeleteChat invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockDeleteChatInspect ¶
func (m *ChatServiceMock) MinimockDeleteChatInspect()
MinimockDeleteChatInspect logs each unmet expectation
func (*ChatServiceMock) MinimockFinish ¶
func (m *ChatServiceMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ChatServiceMock) MinimockGetAvailableChatsAndCountDone ¶
func (m *ChatServiceMock) MinimockGetAvailableChatsAndCountDone() bool
MinimockGetAvailableChatsAndCountDone returns true if the count of the GetAvailableChatsAndCount invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockGetAvailableChatsAndCountInspect ¶
func (m *ChatServiceMock) MinimockGetAvailableChatsAndCountInspect()
MinimockGetAvailableChatsAndCountInspect logs each unmet expectation
func (*ChatServiceMock) MinimockGetChannelsDone ¶
func (m *ChatServiceMock) MinimockGetChannelsDone() bool
MinimockGetChannelsDone returns true if the count of the GetChannels invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockGetChannelsInspect ¶
func (m *ChatServiceMock) MinimockGetChannelsInspect()
MinimockGetChannelsInspect logs each unmet expectation
func (*ChatServiceMock) MinimockGetChatMessagesAndCountDone ¶
func (m *ChatServiceMock) MinimockGetChatMessagesAndCountDone() bool
MinimockGetChatMessagesAndCountDone returns true if the count of the GetChatMessagesAndCount invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockGetChatMessagesAndCountInspect ¶
func (m *ChatServiceMock) MinimockGetChatMessagesAndCountInspect()
MinimockGetChatMessagesAndCountInspect logs each unmet expectation
func (*ChatServiceMock) MinimockInitMessagesChanDone ¶
func (m *ChatServiceMock) MinimockInitMessagesChanDone() bool
MinimockInitMessagesChanDone returns true if the count of the InitMessagesChan invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockInitMessagesChanInspect ¶
func (m *ChatServiceMock) MinimockInitMessagesChanInspect()
MinimockInitMessagesChanInspect logs each unmet expectation
func (*ChatServiceMock) MinimockSendMessageDone ¶
func (m *ChatServiceMock) MinimockSendMessageDone() bool
MinimockSendMessageDone returns true if the count of the SendMessage invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockSendMessageInspect ¶
func (m *ChatServiceMock) MinimockSendMessageInspect()
MinimockSendMessageInspect logs each unmet expectation
func (*ChatServiceMock) MinimockWait ¶
func (m *ChatServiceMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*ChatServiceMock) SendMessage ¶
func (mmSendMessage *ChatServiceMock) SendMessage(ctx context.Context, text string, chatID int64) (err error)
SendMessage implements service.ChatService
func (*ChatServiceMock) SendMessageAfterCounter ¶
func (mmSendMessage *ChatServiceMock) SendMessageAfterCounter() uint64
SendMessageAfterCounter returns a count of finished ChatServiceMock.SendMessage invocations
func (*ChatServiceMock) SendMessageBeforeCounter ¶
func (mmSendMessage *ChatServiceMock) SendMessageBeforeCounter() uint64
SendMessageBeforeCounter returns a count of ChatServiceMock.SendMessage invocations
type ChatServiceMockCheckChatAvailabilityExpectation ¶
type ChatServiceMockCheckChatAvailabilityExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockCheckChatAvailabilityExpectation specifies expectation struct of the ChatService.CheckChatAvailability
func (*ChatServiceMockCheckChatAvailabilityExpectation) Then ¶
func (e *ChatServiceMockCheckChatAvailabilityExpectation) Then(err error) *ChatServiceMock
Then sets up ChatService.CheckChatAvailability return parameters for the expectation previously defined by the When method
type ChatServiceMockCheckChatAvailabilityParams ¶
type ChatServiceMockCheckChatAvailabilityParams struct {
// contains filtered or unexported fields
}
ChatServiceMockCheckChatAvailabilityParams contains parameters of the ChatService.CheckChatAvailability
type ChatServiceMockCheckChatAvailabilityResults ¶
type ChatServiceMockCheckChatAvailabilityResults struct {
// contains filtered or unexported fields
}
ChatServiceMockCheckChatAvailabilityResults contains results of the ChatService.CheckChatAvailability
type ChatServiceMockCheckCtxUserChatAvailabilityExpectation ¶
type ChatServiceMockCheckCtxUserChatAvailabilityExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockCheckCtxUserChatAvailabilityExpectation specifies expectation struct of the ChatService.CheckCtxUserChatAvailability
func (*ChatServiceMockCheckCtxUserChatAvailabilityExpectation) Then ¶
func (e *ChatServiceMockCheckCtxUserChatAvailabilityExpectation) Then(err error) *ChatServiceMock
Then sets up ChatService.CheckCtxUserChatAvailability return parameters for the expectation previously defined by the When method
type ChatServiceMockCheckCtxUserChatAvailabilityParams ¶
type ChatServiceMockCheckCtxUserChatAvailabilityParams struct {
// contains filtered or unexported fields
}
ChatServiceMockCheckCtxUserChatAvailabilityParams contains parameters of the ChatService.CheckCtxUserChatAvailability
type ChatServiceMockCheckCtxUserChatAvailabilityResults ¶
type ChatServiceMockCheckCtxUserChatAvailabilityResults struct {
// contains filtered or unexported fields
}
ChatServiceMockCheckCtxUserChatAvailabilityResults contains results of the ChatService.CheckCtxUserChatAvailability
type ChatServiceMockConnectChatExpectation ¶
type ChatServiceMockConnectChatExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockConnectChatExpectation specifies expectation struct of the ChatService.ConnectChat
func (*ChatServiceMockConnectChatExpectation) Then ¶
func (e *ChatServiceMockConnectChatExpectation) Then(err error) *ChatServiceMock
Then sets up ChatService.ConnectChat return parameters for the expectation previously defined by the When method
type ChatServiceMockConnectChatParams ¶
type ChatServiceMockConnectChatParams struct {
// contains filtered or unexported fields
}
ChatServiceMockConnectChatParams contains parameters of the ChatService.ConnectChat
type ChatServiceMockConnectChatResults ¶
type ChatServiceMockConnectChatResults struct {
// contains filtered or unexported fields
}
ChatServiceMockConnectChatResults contains results of the ChatService.ConnectChat
type ChatServiceMockCreateChatExpectation ¶
type ChatServiceMockCreateChatExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockCreateChatExpectation specifies expectation struct of the ChatService.CreateChat
func (*ChatServiceMockCreateChatExpectation) Then ¶
func (e *ChatServiceMockCreateChatExpectation) Then(i1 int64, err error) *ChatServiceMock
Then sets up ChatService.CreateChat return parameters for the expectation previously defined by the When method
type ChatServiceMockCreateChatParams ¶
type ChatServiceMockCreateChatParams struct {
// contains filtered or unexported fields
}
ChatServiceMockCreateChatParams contains parameters of the ChatService.CreateChat
type ChatServiceMockCreateChatResults ¶
type ChatServiceMockCreateChatResults struct {
// contains filtered or unexported fields
}
ChatServiceMockCreateChatResults contains results of the ChatService.CreateChat
type ChatServiceMockDeleteChatExpectation ¶
type ChatServiceMockDeleteChatExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockDeleteChatExpectation specifies expectation struct of the ChatService.DeleteChat
func (*ChatServiceMockDeleteChatExpectation) Then ¶
func (e *ChatServiceMockDeleteChatExpectation) Then(err error) *ChatServiceMock
Then sets up ChatService.DeleteChat return parameters for the expectation previously defined by the When method
type ChatServiceMockDeleteChatParams ¶
type ChatServiceMockDeleteChatParams struct {
// contains filtered or unexported fields
}
ChatServiceMockDeleteChatParams contains parameters of the ChatService.DeleteChat
type ChatServiceMockDeleteChatResults ¶
type ChatServiceMockDeleteChatResults struct {
// contains filtered or unexported fields
}
ChatServiceMockDeleteChatResults contains results of the ChatService.DeleteChat
type ChatServiceMockGetAvailableChatsAndCountExpectation ¶
type ChatServiceMockGetAvailableChatsAndCountExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockGetAvailableChatsAndCountExpectation specifies expectation struct of the ChatService.GetAvailableChatsAndCount
func (*ChatServiceMockGetAvailableChatsAndCountExpectation) Then ¶
func (e *ChatServiceMockGetAvailableChatsAndCountExpectation) Then(cpa1 []*serviceModel.Chat, u1 uint64, err error) *ChatServiceMock
Then sets up ChatService.GetAvailableChatsAndCount return parameters for the expectation previously defined by the When method
type ChatServiceMockGetAvailableChatsAndCountParams ¶
type ChatServiceMockGetAvailableChatsAndCountParams struct {
// contains filtered or unexported fields
}
ChatServiceMockGetAvailableChatsAndCountParams contains parameters of the ChatService.GetAvailableChatsAndCount
type ChatServiceMockGetAvailableChatsAndCountResults ¶
type ChatServiceMockGetAvailableChatsAndCountResults struct {
// contains filtered or unexported fields
}
ChatServiceMockGetAvailableChatsAndCountResults contains results of the ChatService.GetAvailableChatsAndCount
type ChatServiceMockGetChannelsExpectation ¶
type ChatServiceMockGetChannelsExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockGetChannelsExpectation specifies expectation struct of the ChatService.GetChannels
type ChatServiceMockGetChannelsResults ¶
type ChatServiceMockGetChannelsResults struct {
// contains filtered or unexported fields
}
ChatServiceMockGetChannelsResults contains results of the ChatService.GetChannels
type ChatServiceMockGetChatMessagesAndCountExpectation ¶
type ChatServiceMockGetChatMessagesAndCountExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockGetChatMessagesAndCountExpectation specifies expectation struct of the ChatService.GetChatMessagesAndCount
func (*ChatServiceMockGetChatMessagesAndCountExpectation) Then ¶
func (e *ChatServiceMockGetChatMessagesAndCountExpectation) Then(cpa1 []*serviceModel.ChatMessage, u1 uint64, err error) *ChatServiceMock
Then sets up ChatService.GetChatMessagesAndCount return parameters for the expectation previously defined by the When method
type ChatServiceMockGetChatMessagesAndCountParams ¶
type ChatServiceMockGetChatMessagesAndCountParams struct {
// contains filtered or unexported fields
}
ChatServiceMockGetChatMessagesAndCountParams contains parameters of the ChatService.GetChatMessagesAndCount
type ChatServiceMockGetChatMessagesAndCountResults ¶
type ChatServiceMockGetChatMessagesAndCountResults struct {
// contains filtered or unexported fields
}
ChatServiceMockGetChatMessagesAndCountResults contains results of the ChatService.GetChatMessagesAndCount
type ChatServiceMockInitMessagesChanExpectation ¶
type ChatServiceMockInitMessagesChanExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockInitMessagesChanExpectation specifies expectation struct of the ChatService.InitMessagesChan
func (*ChatServiceMockInitMessagesChanExpectation) Then ¶
func (e *ChatServiceMockInitMessagesChanExpectation) Then(ch1 chan *serviceModel.ChatMessage) *ChatServiceMock
Then sets up ChatService.InitMessagesChan return parameters for the expectation previously defined by the When method
type ChatServiceMockInitMessagesChanParams ¶
type ChatServiceMockInitMessagesChanParams struct {
// contains filtered or unexported fields
}
ChatServiceMockInitMessagesChanParams contains parameters of the ChatService.InitMessagesChan
type ChatServiceMockInitMessagesChanResults ¶
type ChatServiceMockInitMessagesChanResults struct {
// contains filtered or unexported fields
}
ChatServiceMockInitMessagesChanResults contains results of the ChatService.InitMessagesChan
type ChatServiceMockSendMessageExpectation ¶
type ChatServiceMockSendMessageExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockSendMessageExpectation specifies expectation struct of the ChatService.SendMessage
func (*ChatServiceMockSendMessageExpectation) Then ¶
func (e *ChatServiceMockSendMessageExpectation) Then(err error) *ChatServiceMock
Then sets up ChatService.SendMessage return parameters for the expectation previously defined by the When method
type ChatServiceMockSendMessageParams ¶
type ChatServiceMockSendMessageParams struct {
// contains filtered or unexported fields
}
ChatServiceMockSendMessageParams contains parameters of the ChatService.SendMessage
type ChatServiceMockSendMessageResults ¶
type ChatServiceMockSendMessageResults struct {
// contains filtered or unexported fields
}
ChatServiceMockSendMessageResults contains results of the ChatService.SendMessage
type UserClientMock ¶
type UserClientMock struct { CheckUsersExistenceMock mUserClientMockCheckUsersExistence // contains filtered or unexported fields }
UserClientMock implements service.UserClient
func NewUserClientMock ¶
func NewUserClientMock(t minimock.Tester) *UserClientMock
NewUserClientMock returns a mock for service.UserClient
func (*UserClientMock) CheckUsersExistence ¶
func (mmCheckUsersExistence *UserClientMock) CheckUsersExistence(ctx context.Context, usernames []string) (err error)
CheckUsersExistence implements service.UserClient
func (*UserClientMock) CheckUsersExistenceAfterCounter ¶
func (mmCheckUsersExistence *UserClientMock) CheckUsersExistenceAfterCounter() uint64
CheckUsersExistenceAfterCounter returns a count of finished UserClientMock.CheckUsersExistence invocations
func (*UserClientMock) CheckUsersExistenceBeforeCounter ¶
func (mmCheckUsersExistence *UserClientMock) CheckUsersExistenceBeforeCounter() uint64
CheckUsersExistenceBeforeCounter returns a count of UserClientMock.CheckUsersExistence invocations
func (*UserClientMock) MinimockCheckUsersExistenceDone ¶
func (m *UserClientMock) MinimockCheckUsersExistenceDone() bool
MinimockCheckUsersExistenceDone returns true if the count of the CheckUsersExistence invocations corresponds the number of defined expectations
func (*UserClientMock) MinimockCheckUsersExistenceInspect ¶
func (m *UserClientMock) MinimockCheckUsersExistenceInspect()
MinimockCheckUsersExistenceInspect logs each unmet expectation
func (*UserClientMock) MinimockFinish ¶
func (m *UserClientMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*UserClientMock) MinimockWait ¶
func (m *UserClientMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type UserClientMockCheckUsersExistenceExpectation ¶
type UserClientMockCheckUsersExistenceExpectation struct { Counter uint64 // contains filtered or unexported fields }
UserClientMockCheckUsersExistenceExpectation specifies expectation struct of the UserClient.CheckUsersExistence
func (*UserClientMockCheckUsersExistenceExpectation) Then ¶
func (e *UserClientMockCheckUsersExistenceExpectation) Then(err error) *UserClientMock
Then sets up UserClient.CheckUsersExistence return parameters for the expectation previously defined by the When method
type UserClientMockCheckUsersExistenceParams ¶
type UserClientMockCheckUsersExistenceParams struct {
// contains filtered or unexported fields
}
UserClientMockCheckUsersExistenceParams contains parameters of the UserClient.CheckUsersExistence
type UserClientMockCheckUsersExistenceResults ¶
type UserClientMockCheckUsersExistenceResults struct {
// contains filtered or unexported fields
}
UserClientMockCheckUsersExistenceResults contains results of the UserClient.CheckUsersExistence