Documentation ¶
Index ¶
- type ChatServiceMock
- func (mmCreate *ChatServiceMock) Create(ctx context.Context, c2 model.ChatDTO) (i1 int64, err error)
- func (mmCreate *ChatServiceMock) CreateAfterCounter() uint64
- func (mmCreate *ChatServiceMock) CreateBeforeCounter() uint64
- func (mmDelete *ChatServiceMock) Delete(ctx context.Context, i1 int64) (err error)
- func (mmDelete *ChatServiceMock) DeleteAfterCounter() uint64
- func (mmDelete *ChatServiceMock) DeleteBeforeCounter() uint64
- func (m *ChatServiceMock) MinimockCreateDone() bool
- func (m *ChatServiceMock) MinimockCreateInspect()
- func (m *ChatServiceMock) MinimockDeleteDone() bool
- func (m *ChatServiceMock) MinimockDeleteInspect()
- func (m *ChatServiceMock) MinimockFinish()
- func (m *ChatServiceMock) MinimockWait(timeout mm_time.Duration)
- type ChatServiceMockCreateExpectation
- type ChatServiceMockCreateParams
- type ChatServiceMockCreateResults
- type ChatServiceMockDeleteExpectation
- type ChatServiceMockDeleteParams
- type ChatServiceMockDeleteResults
- type MessageServiceMock
- func (m *MessageServiceMock) MinimockFinish()
- func (m *MessageServiceMock) MinimockSendMessageDone() bool
- func (m *MessageServiceMock) MinimockSendMessageInspect()
- func (m *MessageServiceMock) MinimockWait(timeout mm_time.Duration)
- func (mmSendMessage *MessageServiceMock) SendMessage(ctx context.Context, m1 model.MessageDTO) (err error)
- func (mmSendMessage *MessageServiceMock) SendMessageAfterCounter() uint64
- func (mmSendMessage *MessageServiceMock) SendMessageBeforeCounter() uint64
- type MessageServiceMockSendMessageExpectation
- type MessageServiceMockSendMessageParams
- type MessageServiceMockSendMessageResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatServiceMock ¶
type ChatServiceMock struct { CreateMock mChatServiceMockCreate DeleteMock mChatServiceMockDelete // 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) Create ¶
func (mmCreate *ChatServiceMock) Create(ctx context.Context, c2 model.ChatDTO) (i1 int64, err error)
Create implements service.ChatService
func (*ChatServiceMock) CreateAfterCounter ¶
func (mmCreate *ChatServiceMock) CreateAfterCounter() uint64
CreateAfterCounter returns a count of finished ChatServiceMock.Create invocations
func (*ChatServiceMock) CreateBeforeCounter ¶
func (mmCreate *ChatServiceMock) CreateBeforeCounter() uint64
CreateBeforeCounter returns a count of ChatServiceMock.Create invocations
func (*ChatServiceMock) Delete ¶
func (mmDelete *ChatServiceMock) Delete(ctx context.Context, i1 int64) (err error)
Delete implements service.ChatService
func (*ChatServiceMock) DeleteAfterCounter ¶
func (mmDelete *ChatServiceMock) DeleteAfterCounter() uint64
DeleteAfterCounter returns a count of finished ChatServiceMock.Delete invocations
func (*ChatServiceMock) DeleteBeforeCounter ¶
func (mmDelete *ChatServiceMock) DeleteBeforeCounter() uint64
DeleteBeforeCounter returns a count of ChatServiceMock.Delete invocations
func (*ChatServiceMock) MinimockCreateDone ¶
func (m *ChatServiceMock) MinimockCreateDone() bool
MinimockCreateDone returns true if the count of the Create invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockCreateInspect ¶
func (m *ChatServiceMock) MinimockCreateInspect()
MinimockCreateInspect logs each unmet expectation
func (*ChatServiceMock) MinimockDeleteDone ¶
func (m *ChatServiceMock) MinimockDeleteDone() bool
MinimockDeleteDone returns true if the count of the Delete invocations corresponds the number of defined expectations
func (*ChatServiceMock) MinimockDeleteInspect ¶
func (m *ChatServiceMock) MinimockDeleteInspect()
MinimockDeleteInspect 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) MinimockWait ¶
func (m *ChatServiceMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type ChatServiceMockCreateExpectation ¶
type ChatServiceMockCreateExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockCreateExpectation specifies expectation struct of the ChatService.Create
func (*ChatServiceMockCreateExpectation) Then ¶
func (e *ChatServiceMockCreateExpectation) Then(i1 int64, err error) *ChatServiceMock
Then sets up ChatService.Create return parameters for the expectation previously defined by the When method
type ChatServiceMockCreateParams ¶
type ChatServiceMockCreateParams struct {
// contains filtered or unexported fields
}
ChatServiceMockCreateParams contains parameters of the ChatService.Create
type ChatServiceMockCreateResults ¶
type ChatServiceMockCreateResults struct {
// contains filtered or unexported fields
}
ChatServiceMockCreateResults contains results of the ChatService.Create
type ChatServiceMockDeleteExpectation ¶
type ChatServiceMockDeleteExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatServiceMockDeleteExpectation specifies expectation struct of the ChatService.Delete
func (*ChatServiceMockDeleteExpectation) Then ¶
func (e *ChatServiceMockDeleteExpectation) Then(err error) *ChatServiceMock
Then sets up ChatService.Delete return parameters for the expectation previously defined by the When method
type ChatServiceMockDeleteParams ¶
type ChatServiceMockDeleteParams struct {
// contains filtered or unexported fields
}
ChatServiceMockDeleteParams contains parameters of the ChatService.Delete
type ChatServiceMockDeleteResults ¶
type ChatServiceMockDeleteResults struct {
// contains filtered or unexported fields
}
ChatServiceMockDeleteResults contains results of the ChatService.Delete
type MessageServiceMock ¶
type MessageServiceMock struct { SendMessageMock mMessageServiceMockSendMessage // contains filtered or unexported fields }
MessageServiceMock implements service.MessageService
func NewMessageServiceMock ¶
func NewMessageServiceMock(t minimock.Tester) *MessageServiceMock
NewMessageServiceMock returns a mock for service.MessageService
func (*MessageServiceMock) MinimockFinish ¶
func (m *MessageServiceMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*MessageServiceMock) MinimockSendMessageDone ¶
func (m *MessageServiceMock) MinimockSendMessageDone() bool
MinimockSendMessageDone returns true if the count of the SendMessage invocations corresponds the number of defined expectations
func (*MessageServiceMock) MinimockSendMessageInspect ¶
func (m *MessageServiceMock) MinimockSendMessageInspect()
MinimockSendMessageInspect logs each unmet expectation
func (*MessageServiceMock) MinimockWait ¶
func (m *MessageServiceMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*MessageServiceMock) SendMessage ¶
func (mmSendMessage *MessageServiceMock) SendMessage(ctx context.Context, m1 model.MessageDTO) (err error)
SendMessage implements service.MessageService
func (*MessageServiceMock) SendMessageAfterCounter ¶
func (mmSendMessage *MessageServiceMock) SendMessageAfterCounter() uint64
SendMessageAfterCounter returns a count of finished MessageServiceMock.SendMessage invocations
func (*MessageServiceMock) SendMessageBeforeCounter ¶
func (mmSendMessage *MessageServiceMock) SendMessageBeforeCounter() uint64
SendMessageBeforeCounter returns a count of MessageServiceMock.SendMessage invocations
type MessageServiceMockSendMessageExpectation ¶
type MessageServiceMockSendMessageExpectation struct { Counter uint64 // contains filtered or unexported fields }
MessageServiceMockSendMessageExpectation specifies expectation struct of the MessageService.SendMessage
func (*MessageServiceMockSendMessageExpectation) Then ¶
func (e *MessageServiceMockSendMessageExpectation) Then(err error) *MessageServiceMock
Then sets up MessageService.SendMessage return parameters for the expectation previously defined by the When method
type MessageServiceMockSendMessageParams ¶
type MessageServiceMockSendMessageParams struct {
// contains filtered or unexported fields
}
MessageServiceMockSendMessageParams contains parameters of the MessageService.SendMessage
type MessageServiceMockSendMessageResults ¶
type MessageServiceMockSendMessageResults struct {
// contains filtered or unexported fields
}
MessageServiceMockSendMessageResults contains results of the MessageService.SendMessage