Documentation ¶
Index ¶
- type ChatRepositoryMock
- func (mmCreate *ChatRepositoryMock) Create(ctx context.Context, chat *chatModel.Chat) (i1 int64, err error)
- func (mmCreate *ChatRepositoryMock) CreateAfterCounter() uint64
- func (mmCreate *ChatRepositoryMock) CreateBeforeCounter() uint64
- func (mmDelete *ChatRepositoryMock) Delete(ctx context.Context, id int64) (err error)
- func (mmDelete *ChatRepositoryMock) DeleteAfterCounter() uint64
- func (mmDelete *ChatRepositoryMock) DeleteBeforeCounter() uint64
- func (m *ChatRepositoryMock) MinimockCreateDone() bool
- func (m *ChatRepositoryMock) MinimockCreateInspect()
- func (m *ChatRepositoryMock) MinimockDeleteDone() bool
- func (m *ChatRepositoryMock) MinimockDeleteInspect()
- func (m *ChatRepositoryMock) MinimockFinish()
- func (m *ChatRepositoryMock) MinimockSendMessageDone() bool
- func (m *ChatRepositoryMock) MinimockSendMessageInspect()
- func (m *ChatRepositoryMock) MinimockWait(timeout mm_time.Duration)
- func (mmSendMessage *ChatRepositoryMock) SendMessage(ctx context.Context, message *chatModel.Message) (err error)
- func (mmSendMessage *ChatRepositoryMock) SendMessageAfterCounter() uint64
- func (mmSendMessage *ChatRepositoryMock) SendMessageBeforeCounter() uint64
- type ChatRepositoryMockCreateExpectation
- type ChatRepositoryMockCreateParams
- type ChatRepositoryMockCreateResults
- type ChatRepositoryMockDeleteExpectation
- type ChatRepositoryMockDeleteParams
- type ChatRepositoryMockDeleteResults
- type ChatRepositoryMockSendMessageExpectation
- type ChatRepositoryMockSendMessageParams
- type ChatRepositoryMockSendMessageResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChatRepositoryMock ¶
type ChatRepositoryMock struct { CreateMock mChatRepositoryMockCreate DeleteMock mChatRepositoryMockDelete SendMessageMock mChatRepositoryMockSendMessage // contains filtered or unexported fields }
ChatRepositoryMock implements repository.ChatRepository
func NewChatRepositoryMock ¶
func NewChatRepositoryMock(t minimock.Tester) *ChatRepositoryMock
NewChatRepositoryMock returns a mock for repository.ChatRepository
func (*ChatRepositoryMock) Create ¶
func (mmCreate *ChatRepositoryMock) Create(ctx context.Context, chat *chatModel.Chat) (i1 int64, err error)
Create implements repository.ChatRepository
func (*ChatRepositoryMock) CreateAfterCounter ¶
func (mmCreate *ChatRepositoryMock) CreateAfterCounter() uint64
CreateAfterCounter returns a count of finished ChatRepositoryMock.Create invocations
func (*ChatRepositoryMock) CreateBeforeCounter ¶
func (mmCreate *ChatRepositoryMock) CreateBeforeCounter() uint64
CreateBeforeCounter returns a count of ChatRepositoryMock.Create invocations
func (*ChatRepositoryMock) Delete ¶
func (mmDelete *ChatRepositoryMock) Delete(ctx context.Context, id int64) (err error)
Delete implements repository.ChatRepository
func (*ChatRepositoryMock) DeleteAfterCounter ¶
func (mmDelete *ChatRepositoryMock) DeleteAfterCounter() uint64
DeleteAfterCounter returns a count of finished ChatRepositoryMock.Delete invocations
func (*ChatRepositoryMock) DeleteBeforeCounter ¶
func (mmDelete *ChatRepositoryMock) DeleteBeforeCounter() uint64
DeleteBeforeCounter returns a count of ChatRepositoryMock.Delete invocations
func (*ChatRepositoryMock) MinimockCreateDone ¶
func (m *ChatRepositoryMock) MinimockCreateDone() bool
MinimockCreateDone returns true if the count of the Create invocations corresponds the number of defined expectations
func (*ChatRepositoryMock) MinimockCreateInspect ¶
func (m *ChatRepositoryMock) MinimockCreateInspect()
MinimockCreateInspect logs each unmet expectation
func (*ChatRepositoryMock) MinimockDeleteDone ¶
func (m *ChatRepositoryMock) MinimockDeleteDone() bool
MinimockDeleteDone returns true if the count of the Delete invocations corresponds the number of defined expectations
func (*ChatRepositoryMock) MinimockDeleteInspect ¶
func (m *ChatRepositoryMock) MinimockDeleteInspect()
MinimockDeleteInspect logs each unmet expectation
func (*ChatRepositoryMock) MinimockFinish ¶
func (m *ChatRepositoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*ChatRepositoryMock) MinimockSendMessageDone ¶
func (m *ChatRepositoryMock) MinimockSendMessageDone() bool
MinimockSendMessageDone returns true if the count of the SendMessage invocations corresponds the number of defined expectations
func (*ChatRepositoryMock) MinimockSendMessageInspect ¶
func (m *ChatRepositoryMock) MinimockSendMessageInspect()
MinimockSendMessageInspect logs each unmet expectation
func (*ChatRepositoryMock) MinimockWait ¶
func (m *ChatRepositoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
func (*ChatRepositoryMock) SendMessage ¶
func (mmSendMessage *ChatRepositoryMock) SendMessage(ctx context.Context, message *chatModel.Message) (err error)
SendMessage implements repository.ChatRepository
func (*ChatRepositoryMock) SendMessageAfterCounter ¶
func (mmSendMessage *ChatRepositoryMock) SendMessageAfterCounter() uint64
SendMessageAfterCounter returns a count of finished ChatRepositoryMock.SendMessage invocations
func (*ChatRepositoryMock) SendMessageBeforeCounter ¶
func (mmSendMessage *ChatRepositoryMock) SendMessageBeforeCounter() uint64
SendMessageBeforeCounter returns a count of ChatRepositoryMock.SendMessage invocations
type ChatRepositoryMockCreateExpectation ¶
type ChatRepositoryMockCreateExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatRepositoryMockCreateExpectation specifies expectation struct of the ChatRepository.Create
func (*ChatRepositoryMockCreateExpectation) Then ¶
func (e *ChatRepositoryMockCreateExpectation) Then(i1 int64, err error) *ChatRepositoryMock
Then sets up ChatRepository.Create return parameters for the expectation previously defined by the When method
type ChatRepositoryMockCreateParams ¶
type ChatRepositoryMockCreateParams struct {
// contains filtered or unexported fields
}
ChatRepositoryMockCreateParams contains parameters of the ChatRepository.Create
type ChatRepositoryMockCreateResults ¶
type ChatRepositoryMockCreateResults struct {
// contains filtered or unexported fields
}
ChatRepositoryMockCreateResults contains results of the ChatRepository.Create
type ChatRepositoryMockDeleteExpectation ¶
type ChatRepositoryMockDeleteExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatRepositoryMockDeleteExpectation specifies expectation struct of the ChatRepository.Delete
func (*ChatRepositoryMockDeleteExpectation) Then ¶
func (e *ChatRepositoryMockDeleteExpectation) Then(err error) *ChatRepositoryMock
Then sets up ChatRepository.Delete return parameters for the expectation previously defined by the When method
type ChatRepositoryMockDeleteParams ¶
type ChatRepositoryMockDeleteParams struct {
// contains filtered or unexported fields
}
ChatRepositoryMockDeleteParams contains parameters of the ChatRepository.Delete
type ChatRepositoryMockDeleteResults ¶
type ChatRepositoryMockDeleteResults struct {
// contains filtered or unexported fields
}
ChatRepositoryMockDeleteResults contains results of the ChatRepository.Delete
type ChatRepositoryMockSendMessageExpectation ¶
type ChatRepositoryMockSendMessageExpectation struct { Counter uint64 // contains filtered or unexported fields }
ChatRepositoryMockSendMessageExpectation specifies expectation struct of the ChatRepository.SendMessage
func (*ChatRepositoryMockSendMessageExpectation) Then ¶
func (e *ChatRepositoryMockSendMessageExpectation) Then(err error) *ChatRepositoryMock
Then sets up ChatRepository.SendMessage return parameters for the expectation previously defined by the When method
type ChatRepositoryMockSendMessageParams ¶
type ChatRepositoryMockSendMessageParams struct {
// contains filtered or unexported fields
}
ChatRepositoryMockSendMessageParams contains parameters of the ChatRepository.SendMessage
type ChatRepositoryMockSendMessageResults ¶
type ChatRepositoryMockSendMessageResults struct {
// contains filtered or unexported fields
}
ChatRepositoryMockSendMessageResults contains results of the ChatRepository.SendMessage