Documentation ¶
Index ¶
- type RepositoryMock
- func (mmGetList *RepositoryMock) GetList(ctx context.Context, filter *mm_topic_repository.Query) (tpa1 []*model.Topic, err error)
- func (mmGetList *RepositoryMock) GetListAfterCounter() uint64
- func (mmGetList *RepositoryMock) GetListBeforeCounter() uint64
- func (m *RepositoryMock) MinimockFinish()
- func (m *RepositoryMock) MinimockGetListDone() bool
- func (m *RepositoryMock) MinimockGetListInspect()
- func (m *RepositoryMock) MinimockWait(timeout mm_time.Duration)
- type RepositoryMockGetListExpectation
- type RepositoryMockGetListParams
- type RepositoryMockGetListResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepositoryMock ¶
type RepositoryMock struct { GetListMock mRepositoryMockGetList // contains filtered or unexported fields }
RepositoryMock implements topic_repository.Repository
func NewRepositoryMock ¶
func NewRepositoryMock(t minimock.Tester) *RepositoryMock
NewRepositoryMock returns a mock for topic_repository.Repository
func (*RepositoryMock) GetList ¶
func (mmGetList *RepositoryMock) GetList(ctx context.Context, filter *mm_topic_repository.Query) (tpa1 []*model.Topic, err error)
GetList implements topic_repository.Repository
func (*RepositoryMock) GetListAfterCounter ¶
func (mmGetList *RepositoryMock) GetListAfterCounter() uint64
GetListAfterCounter returns a count of finished RepositoryMock.GetList invocations
func (*RepositoryMock) GetListBeforeCounter ¶
func (mmGetList *RepositoryMock) GetListBeforeCounter() uint64
GetListBeforeCounter returns a count of RepositoryMock.GetList invocations
func (*RepositoryMock) MinimockFinish ¶
func (m *RepositoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*RepositoryMock) MinimockGetListDone ¶
func (m *RepositoryMock) MinimockGetListDone() bool
MinimockGetListDone returns true if the count of the GetList invocations corresponds the number of defined expectations
func (*RepositoryMock) MinimockGetListInspect ¶
func (m *RepositoryMock) MinimockGetListInspect()
MinimockGetListInspect logs each unmet expectation
func (*RepositoryMock) MinimockWait ¶
func (m *RepositoryMock) MinimockWait(timeout mm_time.Duration)
MinimockWait waits for all mocked methods to be called the expected number of times
type RepositoryMockGetListExpectation ¶
type RepositoryMockGetListExpectation struct { Counter uint64 // contains filtered or unexported fields }
RepositoryMockGetListExpectation specifies expectation struct of the Repository.GetList
func (*RepositoryMockGetListExpectation) Then ¶
func (e *RepositoryMockGetListExpectation) Then(tpa1 []*model.Topic, err error) *RepositoryMock
Then sets up Repository.GetList return parameters for the expectation previously defined by the When method
type RepositoryMockGetListParams ¶
type RepositoryMockGetListParams struct {
// contains filtered or unexported fields
}
RepositoryMockGetListParams contains parameters of the Repository.GetList
type RepositoryMockGetListResults ¶
type RepositoryMockGetListResults struct {
// contains filtered or unexported fields
}
RepositoryMockGetListResults contains results of the Repository.GetList