Documentation ¶
Index ¶
- type RepositoryMock
- func (mmCreate *RepositoryMock) Create(ctx context.Context, meeting *model.Meeting) (i1 int64, err error)
- func (mmCreate *RepositoryMock) CreateAfterCounter() uint64
- func (mmCreate *RepositoryMock) CreateBeforeCounter() uint64
- func (mmGet *RepositoryMock) Get(ctx context.Context, id int64) (mp1 *model.Meeting, err error)
- func (mmGet *RepositoryMock) GetAfterCounter() uint64
- func (mmGet *RepositoryMock) GetBeforeCounter() uint64
- func (mmGetList *RepositoryMock) GetList(ctx context.Context, filter *mm_meeting_repository.Query) (mpa1 []*model.Meeting, err error)
- func (mmGetList *RepositoryMock) GetListAfterCounter() uint64
- func (mmGetList *RepositoryMock) GetListBeforeCounter() uint64
- func (mmGetSpeakerStatByTopic *RepositoryMock) GetSpeakerStatByTopic(ctx context.Context, unitID int64, topicID int64, speakerID int64) (i1 int64, err error)
- func (mmGetSpeakerStatByTopic *RepositoryMock) GetSpeakerStatByTopicAfterCounter() uint64
- func (mmGetSpeakerStatByTopic *RepositoryMock) GetSpeakerStatByTopicBeforeCounter() uint64
- func (m *RepositoryMock) MinimockCreateDone() bool
- func (m *RepositoryMock) MinimockCreateInspect()
- func (m *RepositoryMock) MinimockFinish()
- func (m *RepositoryMock) MinimockGetDone() bool
- func (m *RepositoryMock) MinimockGetInspect()
- func (m *RepositoryMock) MinimockGetListDone() bool
- func (m *RepositoryMock) MinimockGetListInspect()
- func (m *RepositoryMock) MinimockGetSpeakerStatByTopicDone() bool
- func (m *RepositoryMock) MinimockGetSpeakerStatByTopicInspect()
- func (m *RepositoryMock) MinimockUpdateDone() bool
- func (m *RepositoryMock) MinimockUpdateInspect()
- func (m *RepositoryMock) MinimockWait(timeout mm_time.Duration)
- func (mmUpdate *RepositoryMock) Update(ctx context.Context, ids []int64, updateMeeting *model.UpdateMeeting) (err error)
- func (mmUpdate *RepositoryMock) UpdateAfterCounter() uint64
- func (mmUpdate *RepositoryMock) UpdateBeforeCounter() uint64
- type RepositoryMockCreateExpectation
- type RepositoryMockCreateParams
- type RepositoryMockCreateResults
- type RepositoryMockGetExpectation
- type RepositoryMockGetListExpectation
- type RepositoryMockGetListParams
- type RepositoryMockGetListResults
- type RepositoryMockGetParams
- type RepositoryMockGetResults
- type RepositoryMockGetSpeakerStatByTopicExpectation
- type RepositoryMockGetSpeakerStatByTopicParams
- type RepositoryMockGetSpeakerStatByTopicResults
- type RepositoryMockUpdateExpectation
- type RepositoryMockUpdateParams
- type RepositoryMockUpdateResults
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RepositoryMock ¶
type RepositoryMock struct { CreateMock mRepositoryMockCreate GetMock mRepositoryMockGet GetListMock mRepositoryMockGetList GetSpeakerStatByTopicMock mRepositoryMockGetSpeakerStatByTopic UpdateMock mRepositoryMockUpdate // contains filtered or unexported fields }
RepositoryMock implements meeting_repository.Repository
func NewRepositoryMock ¶
func NewRepositoryMock(t minimock.Tester) *RepositoryMock
NewRepositoryMock returns a mock for meeting_repository.Repository
func (*RepositoryMock) Create ¶
func (mmCreate *RepositoryMock) Create(ctx context.Context, meeting *model.Meeting) (i1 int64, err error)
Create implements meeting_repository.Repository
func (*RepositoryMock) CreateAfterCounter ¶
func (mmCreate *RepositoryMock) CreateAfterCounter() uint64
CreateAfterCounter returns a count of finished RepositoryMock.Create invocations
func (*RepositoryMock) CreateBeforeCounter ¶
func (mmCreate *RepositoryMock) CreateBeforeCounter() uint64
CreateBeforeCounter returns a count of RepositoryMock.Create invocations
func (*RepositoryMock) GetAfterCounter ¶
func (mmGet *RepositoryMock) GetAfterCounter() uint64
GetAfterCounter returns a count of finished RepositoryMock.Get invocations
func (*RepositoryMock) GetBeforeCounter ¶
func (mmGet *RepositoryMock) GetBeforeCounter() uint64
GetBeforeCounter returns a count of RepositoryMock.Get invocations
func (*RepositoryMock) GetList ¶
func (mmGetList *RepositoryMock) GetList(ctx context.Context, filter *mm_meeting_repository.Query) (mpa1 []*model.Meeting, err error)
GetList implements meeting_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) GetSpeakerStatByTopic ¶
func (mmGetSpeakerStatByTopic *RepositoryMock) GetSpeakerStatByTopic(ctx context.Context, unitID int64, topicID int64, speakerID int64) (i1 int64, err error)
GetSpeakerStatByTopic implements meeting_repository.Repository
func (*RepositoryMock) GetSpeakerStatByTopicAfterCounter ¶
func (mmGetSpeakerStatByTopic *RepositoryMock) GetSpeakerStatByTopicAfterCounter() uint64
GetSpeakerStatByTopicAfterCounter returns a count of finished RepositoryMock.GetSpeakerStatByTopic invocations
func (*RepositoryMock) GetSpeakerStatByTopicBeforeCounter ¶
func (mmGetSpeakerStatByTopic *RepositoryMock) GetSpeakerStatByTopicBeforeCounter() uint64
GetSpeakerStatByTopicBeforeCounter returns a count of RepositoryMock.GetSpeakerStatByTopic invocations
func (*RepositoryMock) MinimockCreateDone ¶
func (m *RepositoryMock) MinimockCreateDone() bool
MinimockCreateDone returns true if the count of the Create invocations corresponds the number of defined expectations
func (*RepositoryMock) MinimockCreateInspect ¶
func (m *RepositoryMock) MinimockCreateInspect()
MinimockCreateInspect logs each unmet expectation
func (*RepositoryMock) MinimockFinish ¶
func (m *RepositoryMock) MinimockFinish()
MinimockFinish checks that all mocked methods have been called the expected number of times
func (*RepositoryMock) MinimockGetDone ¶
func (m *RepositoryMock) MinimockGetDone() bool
MinimockGetDone returns true if the count of the Get invocations corresponds the number of defined expectations
func (*RepositoryMock) MinimockGetInspect ¶
func (m *RepositoryMock) MinimockGetInspect()
MinimockGetInspect logs each unmet expectation
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) MinimockGetSpeakerStatByTopicDone ¶
func (m *RepositoryMock) MinimockGetSpeakerStatByTopicDone() bool
MinimockGetSpeakerStatByTopicDone returns true if the count of the GetSpeakerStatByTopic invocations corresponds the number of defined expectations
func (*RepositoryMock) MinimockGetSpeakerStatByTopicInspect ¶
func (m *RepositoryMock) MinimockGetSpeakerStatByTopicInspect()
MinimockGetSpeakerStatByTopicInspect logs each unmet expectation
func (*RepositoryMock) MinimockUpdateDone ¶
func (m *RepositoryMock) MinimockUpdateDone() bool
MinimockUpdateDone returns true if the count of the Update invocations corresponds the number of defined expectations
func (*RepositoryMock) MinimockUpdateInspect ¶
func (m *RepositoryMock) MinimockUpdateInspect()
MinimockUpdateInspect 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
func (*RepositoryMock) Update ¶
func (mmUpdate *RepositoryMock) Update(ctx context.Context, ids []int64, updateMeeting *model.UpdateMeeting) (err error)
Update implements meeting_repository.Repository
func (*RepositoryMock) UpdateAfterCounter ¶
func (mmUpdate *RepositoryMock) UpdateAfterCounter() uint64
UpdateAfterCounter returns a count of finished RepositoryMock.Update invocations
func (*RepositoryMock) UpdateBeforeCounter ¶
func (mmUpdate *RepositoryMock) UpdateBeforeCounter() uint64
UpdateBeforeCounter returns a count of RepositoryMock.Update invocations
type RepositoryMockCreateExpectation ¶
type RepositoryMockCreateExpectation struct { Counter uint64 // contains filtered or unexported fields }
RepositoryMockCreateExpectation specifies expectation struct of the Repository.Create
func (*RepositoryMockCreateExpectation) Then ¶
func (e *RepositoryMockCreateExpectation) Then(i1 int64, err error) *RepositoryMock
Then sets up Repository.Create return parameters for the expectation previously defined by the When method
type RepositoryMockCreateParams ¶
type RepositoryMockCreateParams struct {
// contains filtered or unexported fields
}
RepositoryMockCreateParams contains parameters of the Repository.Create
type RepositoryMockCreateResults ¶
type RepositoryMockCreateResults struct {
// contains filtered or unexported fields
}
RepositoryMockCreateResults contains results of the Repository.Create
type RepositoryMockGetExpectation ¶
type RepositoryMockGetExpectation struct { Counter uint64 // contains filtered or unexported fields }
RepositoryMockGetExpectation specifies expectation struct of the Repository.Get
func (*RepositoryMockGetExpectation) Then ¶
func (e *RepositoryMockGetExpectation) Then(mp1 *model.Meeting, err error) *RepositoryMock
Then sets up Repository.Get return parameters for the expectation previously defined by the When method
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(mpa1 []*model.Meeting, 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
type RepositoryMockGetParams ¶
type RepositoryMockGetParams struct {
// contains filtered or unexported fields
}
RepositoryMockGetParams contains parameters of the Repository.Get
type RepositoryMockGetResults ¶
type RepositoryMockGetResults struct {
// contains filtered or unexported fields
}
RepositoryMockGetResults contains results of the Repository.Get
type RepositoryMockGetSpeakerStatByTopicExpectation ¶
type RepositoryMockGetSpeakerStatByTopicExpectation struct { Counter uint64 // contains filtered or unexported fields }
RepositoryMockGetSpeakerStatByTopicExpectation specifies expectation struct of the Repository.GetSpeakerStatByTopic
func (*RepositoryMockGetSpeakerStatByTopicExpectation) Then ¶
func (e *RepositoryMockGetSpeakerStatByTopicExpectation) Then(i1 int64, err error) *RepositoryMock
Then sets up Repository.GetSpeakerStatByTopic return parameters for the expectation previously defined by the When method
type RepositoryMockGetSpeakerStatByTopicParams ¶
type RepositoryMockGetSpeakerStatByTopicParams struct {
// contains filtered or unexported fields
}
RepositoryMockGetSpeakerStatByTopicParams contains parameters of the Repository.GetSpeakerStatByTopic
type RepositoryMockGetSpeakerStatByTopicResults ¶
type RepositoryMockGetSpeakerStatByTopicResults struct {
// contains filtered or unexported fields
}
RepositoryMockGetSpeakerStatByTopicResults contains results of the Repository.GetSpeakerStatByTopic
type RepositoryMockUpdateExpectation ¶
type RepositoryMockUpdateExpectation struct { Counter uint64 // contains filtered or unexported fields }
RepositoryMockUpdateExpectation specifies expectation struct of the Repository.Update
func (*RepositoryMockUpdateExpectation) Then ¶
func (e *RepositoryMockUpdateExpectation) Then(err error) *RepositoryMock
Then sets up Repository.Update return parameters for the expectation previously defined by the When method
type RepositoryMockUpdateParams ¶
type RepositoryMockUpdateParams struct {
// contains filtered or unexported fields
}
RepositoryMockUpdateParams contains parameters of the Repository.Update
type RepositoryMockUpdateResults ¶
type RepositoryMockUpdateResults struct {
// contains filtered or unexported fields
}
RepositoryMockUpdateResults contains results of the Repository.Update