Documentation
¶
Overview ¶
Package quemocks is a generated GoMock package.
Package quemocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: ./question_set.go
Generated by this command:
mockgen -source=./question_set.go -destination=../../mocks/quetion_set.mock.go -package=quemocks -typed=true QuestionSetService
Package quemocks is a generated GoMock package.
Index ¶
- type MockExamineService
- func (m *MockExamineService) Correct(ctx context.Context, uid, qid int64, questionResult domain.Result) error
- func (m *MockExamineService) EXPECT() *MockExamineServiceMockRecorder
- func (m *MockExamineService) Examine(ctx context.Context, uid, qid int64, input string) (domain.ExamineResult, error)
- func (m *MockExamineService) GetResults(ctx context.Context, uid int64, ids []int64) (map[int64]domain.ExamineResult, error)
- func (m *MockExamineService) QuestionResult(ctx context.Context, uid, qid int64) (domain.Result, error)
- type MockExamineServiceCorrectCall
- func (c *MockExamineServiceCorrectCall) Do(f func(context.Context, int64, int64, domain.Result) error) *MockExamineServiceCorrectCall
- func (c *MockExamineServiceCorrectCall) DoAndReturn(f func(context.Context, int64, int64, domain.Result) error) *MockExamineServiceCorrectCall
- func (c *MockExamineServiceCorrectCall) Return(arg0 error) *MockExamineServiceCorrectCall
- type MockExamineServiceExamineCall
- func (c *MockExamineServiceExamineCall) Do(f func(context.Context, int64, int64, string) (domain.ExamineResult, error)) *MockExamineServiceExamineCall
- func (c *MockExamineServiceExamineCall) DoAndReturn(f func(context.Context, int64, int64, string) (domain.ExamineResult, error)) *MockExamineServiceExamineCall
- func (c *MockExamineServiceExamineCall) Return(arg0 domain.ExamineResult, arg1 error) *MockExamineServiceExamineCall
- type MockExamineServiceGetResultsCall
- func (c *MockExamineServiceGetResultsCall) Do(...) *MockExamineServiceGetResultsCall
- func (c *MockExamineServiceGetResultsCall) DoAndReturn(...) *MockExamineServiceGetResultsCall
- func (c *MockExamineServiceGetResultsCall) Return(arg0 map[int64]domain.ExamineResult, arg1 error) *MockExamineServiceGetResultsCall
- type MockExamineServiceMockRecorder
- func (mr *MockExamineServiceMockRecorder) Correct(ctx, uid, qid, questionResult any) *MockExamineServiceCorrectCall
- func (mr *MockExamineServiceMockRecorder) Examine(ctx, uid, qid, input any) *MockExamineServiceExamineCall
- func (mr *MockExamineServiceMockRecorder) GetResults(ctx, uid, ids any) *MockExamineServiceGetResultsCall
- func (mr *MockExamineServiceMockRecorder) QuestionResult(ctx, uid, qid any) *MockExamineServiceQuestionResultCall
- type MockExamineServiceQuestionResultCall
- func (c *MockExamineServiceQuestionResultCall) Do(f func(context.Context, int64, int64) (domain.Result, error)) *MockExamineServiceQuestionResultCall
- func (c *MockExamineServiceQuestionResultCall) DoAndReturn(f func(context.Context, int64, int64) (domain.Result, error)) *MockExamineServiceQuestionResultCall
- func (c *MockExamineServiceQuestionResultCall) Return(arg0 domain.Result, arg1 error) *MockExamineServiceQuestionResultCall
- type MockQuestionSetService
- func (m *MockQuestionSetService) Detail(ctx context.Context, id int64) (domain.QuestionSet, error)
- func (m *MockQuestionSetService) DetailByBiz(ctx context.Context, biz string, bizId int64) (domain.QuestionSet, error)
- func (m *MockQuestionSetService) EXPECT() *MockQuestionSetServiceMockRecorder
- func (m *MockQuestionSetService) GetByIDsWithQuestion(ctx context.Context, ids []int64) ([]domain.QuestionSet, error)
- func (m *MockQuestionSetService) GetByIds(ctx context.Context, ids []int64) ([]domain.QuestionSet, error)
- func (m *MockQuestionSetService) GetCandidates(ctx context.Context, id int64, offset, limit int) ([]domain.Question, int64, error)
- func (m *MockQuestionSetService) List(ctx context.Context, offset, limit int) ([]domain.QuestionSet, int64, error)
- func (m *MockQuestionSetService) ListDefault(ctx context.Context, offset, limit int) ([]domain.QuestionSet, int64, error)
- func (m *MockQuestionSetService) PubDetail(ctx context.Context, id int64) (domain.QuestionSet, error)
- func (m *MockQuestionSetService) Save(ctx context.Context, set domain.QuestionSet) (int64, error)
- func (m *MockQuestionSetService) UpdateQuestions(ctx context.Context, set domain.QuestionSet) error
- type MockQuestionSetServiceMockRecorder
- func (mr *MockQuestionSetServiceMockRecorder) Detail(ctx, id any) *QuestionSetServiceDetailCall
- func (mr *MockQuestionSetServiceMockRecorder) DetailByBiz(ctx, biz, bizId any) *QuestionSetServiceDetailByBizCall
- func (mr *MockQuestionSetServiceMockRecorder) GetByIDsWithQuestion(ctx, ids any) *QuestionSetServiceGetByIDsWithQuestionCall
- func (mr *MockQuestionSetServiceMockRecorder) GetByIds(ctx, ids any) *QuestionSetServiceGetByIdsCall
- func (mr *MockQuestionSetServiceMockRecorder) GetCandidates(ctx, id, offset, limit any) *QuestionSetServiceGetCandidatesCall
- func (mr *MockQuestionSetServiceMockRecorder) List(ctx, offset, limit any) *QuestionSetServiceListCall
- func (mr *MockQuestionSetServiceMockRecorder) ListDefault(ctx, offset, limit any) *QuestionSetServiceListDefaultCall
- func (mr *MockQuestionSetServiceMockRecorder) PubDetail(ctx, id any) *QuestionSetServicePubDetailCall
- func (mr *MockQuestionSetServiceMockRecorder) Save(ctx, set any) *QuestionSetServiceSaveCall
- func (mr *MockQuestionSetServiceMockRecorder) UpdateQuestions(ctx, set any) *QuestionSetServiceUpdateQuestionsCall
- type MockService
- func (m *MockService) Delete(ctx context.Context, qid int64) error
- func (m *MockService) Detail(ctx context.Context, qid int64) (domain.Question, error)
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetPubByIDs(ctx context.Context, ids []int64) ([]domain.Question, error)
- func (m *MockService) List(ctx context.Context, offset, limit int) ([]domain.Question, int64, error)
- func (m *MockService) PubDetail(ctx context.Context, qid int64) (domain.Question, error)
- func (m *MockService) PubList(ctx context.Context, offset, limit int) (int64, []domain.Question, error)
- func (m *MockService) Publish(ctx context.Context, que *domain.Question) (int64, error)
- func (m *MockService) Save(ctx context.Context, question *domain.Question) (int64, error)
- type MockServiceDeleteCall
- type MockServiceDetailCall
- func (c *MockServiceDetailCall) Do(f func(context.Context, int64) (domain.Question, error)) *MockServiceDetailCall
- func (c *MockServiceDetailCall) DoAndReturn(f func(context.Context, int64) (domain.Question, error)) *MockServiceDetailCall
- func (c *MockServiceDetailCall) Return(arg0 domain.Question, arg1 error) *MockServiceDetailCall
- type MockServiceGetPubByIDsCall
- func (c *MockServiceGetPubByIDsCall) Do(f func(context.Context, []int64) ([]domain.Question, error)) *MockServiceGetPubByIDsCall
- func (c *MockServiceGetPubByIDsCall) DoAndReturn(f func(context.Context, []int64) ([]domain.Question, error)) *MockServiceGetPubByIDsCall
- func (c *MockServiceGetPubByIDsCall) Return(arg0 []domain.Question, arg1 error) *MockServiceGetPubByIDsCall
- type MockServiceListCall
- func (c *MockServiceListCall) Do(f func(context.Context, int, int) ([]domain.Question, int64, error)) *MockServiceListCall
- func (c *MockServiceListCall) DoAndReturn(f func(context.Context, int, int) ([]domain.Question, int64, error)) *MockServiceListCall
- func (c *MockServiceListCall) Return(arg0 []domain.Question, arg1 int64, arg2 error) *MockServiceListCall
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) Delete(ctx, qid any) *MockServiceDeleteCall
- func (mr *MockServiceMockRecorder) Detail(ctx, qid any) *MockServiceDetailCall
- func (mr *MockServiceMockRecorder) GetPubByIDs(ctx, ids any) *MockServiceGetPubByIDsCall
- func (mr *MockServiceMockRecorder) List(ctx, offset, limit any) *MockServiceListCall
- func (mr *MockServiceMockRecorder) PubDetail(ctx, qid any) *MockServicePubDetailCall
- func (mr *MockServiceMockRecorder) PubList(ctx, offset, limit any) *MockServicePubListCall
- func (mr *MockServiceMockRecorder) Publish(ctx, que any) *MockServicePublishCall
- func (mr *MockServiceMockRecorder) Save(ctx, question any) *MockServiceSaveCall
- type MockServicePubDetailCall
- func (c *MockServicePubDetailCall) Do(f func(context.Context, int64) (domain.Question, error)) *MockServicePubDetailCall
- func (c *MockServicePubDetailCall) DoAndReturn(f func(context.Context, int64) (domain.Question, error)) *MockServicePubDetailCall
- func (c *MockServicePubDetailCall) Return(arg0 domain.Question, arg1 error) *MockServicePubDetailCall
- type MockServicePubListCall
- func (c *MockServicePubListCall) Do(f func(context.Context, int, int) (int64, []domain.Question, error)) *MockServicePubListCall
- func (c *MockServicePubListCall) DoAndReturn(f func(context.Context, int, int) (int64, []domain.Question, error)) *MockServicePubListCall
- func (c *MockServicePubListCall) Return(arg0 int64, arg1 []domain.Question, arg2 error) *MockServicePubListCall
- type MockServicePublishCall
- func (c *MockServicePublishCall) Do(f func(context.Context, *domain.Question) (int64, error)) *MockServicePublishCall
- func (c *MockServicePublishCall) DoAndReturn(f func(context.Context, *domain.Question) (int64, error)) *MockServicePublishCall
- func (c *MockServicePublishCall) Return(arg0 int64, arg1 error) *MockServicePublishCall
- type MockServiceSaveCall
- func (c *MockServiceSaveCall) Do(f func(context.Context, *domain.Question) (int64, error)) *MockServiceSaveCall
- func (c *MockServiceSaveCall) DoAndReturn(f func(context.Context, *domain.Question) (int64, error)) *MockServiceSaveCall
- func (c *MockServiceSaveCall) Return(arg0 int64, arg1 error) *MockServiceSaveCall
- type QuestionSetServiceDetailByBizCall
- func (c *QuestionSetServiceDetailByBizCall) Do(f func(context.Context, string, int64) (domain.QuestionSet, error)) *QuestionSetServiceDetailByBizCall
- func (c *QuestionSetServiceDetailByBizCall) DoAndReturn(f func(context.Context, string, int64) (domain.QuestionSet, error)) *QuestionSetServiceDetailByBizCall
- func (c *QuestionSetServiceDetailByBizCall) Return(arg0 domain.QuestionSet, arg1 error) *QuestionSetServiceDetailByBizCall
- type QuestionSetServiceDetailCall
- func (c *QuestionSetServiceDetailCall) Do(f func(context.Context, int64) (domain.QuestionSet, error)) *QuestionSetServiceDetailCall
- func (c *QuestionSetServiceDetailCall) DoAndReturn(f func(context.Context, int64) (domain.QuestionSet, error)) *QuestionSetServiceDetailCall
- func (c *QuestionSetServiceDetailCall) Return(arg0 domain.QuestionSet, arg1 error) *QuestionSetServiceDetailCall
- type QuestionSetServiceGetByIDsWithQuestionCall
- func (c *QuestionSetServiceGetByIDsWithQuestionCall) Do(f func(context.Context, []int64) ([]domain.QuestionSet, error)) *QuestionSetServiceGetByIDsWithQuestionCall
- func (c *QuestionSetServiceGetByIDsWithQuestionCall) DoAndReturn(f func(context.Context, []int64) ([]domain.QuestionSet, error)) *QuestionSetServiceGetByIDsWithQuestionCall
- func (c *QuestionSetServiceGetByIDsWithQuestionCall) Return(arg0 []domain.QuestionSet, arg1 error) *QuestionSetServiceGetByIDsWithQuestionCall
- type QuestionSetServiceGetByIdsCall
- func (c *QuestionSetServiceGetByIdsCall) Do(f func(context.Context, []int64) ([]domain.QuestionSet, error)) *QuestionSetServiceGetByIdsCall
- func (c *QuestionSetServiceGetByIdsCall) DoAndReturn(f func(context.Context, []int64) ([]domain.QuestionSet, error)) *QuestionSetServiceGetByIdsCall
- func (c *QuestionSetServiceGetByIdsCall) Return(arg0 []domain.QuestionSet, arg1 error) *QuestionSetServiceGetByIdsCall
- type QuestionSetServiceGetCandidatesCall
- func (c *QuestionSetServiceGetCandidatesCall) Do(f func(context.Context, int64, int, int) ([]domain.Question, int64, error)) *QuestionSetServiceGetCandidatesCall
- func (c *QuestionSetServiceGetCandidatesCall) DoAndReturn(f func(context.Context, int64, int, int) ([]domain.Question, int64, error)) *QuestionSetServiceGetCandidatesCall
- func (c *QuestionSetServiceGetCandidatesCall) Return(arg0 []domain.Question, arg1 int64, arg2 error) *QuestionSetServiceGetCandidatesCall
- type QuestionSetServiceListCall
- func (c *QuestionSetServiceListCall) Do(f func(context.Context, int, int) ([]domain.QuestionSet, int64, error)) *QuestionSetServiceListCall
- func (c *QuestionSetServiceListCall) DoAndReturn(f func(context.Context, int, int) ([]domain.QuestionSet, int64, error)) *QuestionSetServiceListCall
- func (c *QuestionSetServiceListCall) Return(arg0 []domain.QuestionSet, arg1 int64, arg2 error) *QuestionSetServiceListCall
- type QuestionSetServiceListDefaultCall
- func (c *QuestionSetServiceListDefaultCall) Do(f func(context.Context, int, int) ([]domain.QuestionSet, int64, error)) *QuestionSetServiceListDefaultCall
- func (c *QuestionSetServiceListDefaultCall) DoAndReturn(f func(context.Context, int, int) ([]domain.QuestionSet, int64, error)) *QuestionSetServiceListDefaultCall
- func (c *QuestionSetServiceListDefaultCall) Return(arg0 []domain.QuestionSet, arg1 int64, arg2 error) *QuestionSetServiceListDefaultCall
- type QuestionSetServicePubDetailCall
- func (c *QuestionSetServicePubDetailCall) Do(f func(context.Context, int64) (domain.QuestionSet, error)) *QuestionSetServicePubDetailCall
- func (c *QuestionSetServicePubDetailCall) DoAndReturn(f func(context.Context, int64) (domain.QuestionSet, error)) *QuestionSetServicePubDetailCall
- func (c *QuestionSetServicePubDetailCall) Return(arg0 domain.QuestionSet, arg1 error) *QuestionSetServicePubDetailCall
- type QuestionSetServiceSaveCall
- func (c *QuestionSetServiceSaveCall) Do(f func(context.Context, domain.QuestionSet) (int64, error)) *QuestionSetServiceSaveCall
- func (c *QuestionSetServiceSaveCall) DoAndReturn(f func(context.Context, domain.QuestionSet) (int64, error)) *QuestionSetServiceSaveCall
- func (c *QuestionSetServiceSaveCall) Return(arg0 int64, arg1 error) *QuestionSetServiceSaveCall
- type QuestionSetServiceUpdateQuestionsCall
- func (c *QuestionSetServiceUpdateQuestionsCall) Do(f func(context.Context, domain.QuestionSet) error) *QuestionSetServiceUpdateQuestionsCall
- func (c *QuestionSetServiceUpdateQuestionsCall) DoAndReturn(f func(context.Context, domain.QuestionSet) error) *QuestionSetServiceUpdateQuestionsCall
- func (c *QuestionSetServiceUpdateQuestionsCall) Return(arg0 error) *QuestionSetServiceUpdateQuestionsCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockExamineService ¶ added in v0.2.1
type MockExamineService struct {
// contains filtered or unexported fields
}
MockExamineService is a mock of ExamineService interface.
func NewMockExamineService ¶ added in v0.2.1
func NewMockExamineService(ctrl *gomock.Controller) *MockExamineService
NewMockExamineService creates a new mock instance.
func (*MockExamineService) Correct ¶ added in v0.3.0
func (m *MockExamineService) Correct(ctx context.Context, uid, qid int64, questionResult domain.Result) error
Correct mocks base method.
func (*MockExamineService) EXPECT ¶ added in v0.2.1
func (m *MockExamineService) EXPECT() *MockExamineServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExamineService) Examine ¶ added in v0.2.1
func (m *MockExamineService) Examine(ctx context.Context, uid, qid int64, input string) (domain.ExamineResult, error)
Examine mocks base method.
func (*MockExamineService) GetResults ¶ added in v0.2.1
func (m *MockExamineService) GetResults(ctx context.Context, uid int64, ids []int64) (map[int64]domain.ExamineResult, error)
GetResults mocks base method.
func (*MockExamineService) QuestionResult ¶ added in v0.2.1
func (m *MockExamineService) QuestionResult(ctx context.Context, uid, qid int64) (domain.Result, error)
QuestionResult mocks base method.
type MockExamineServiceCorrectCall ¶ added in v0.3.0
MockExamineServiceCorrectCall wraps *gomock.Call.
func (*MockExamineServiceCorrectCall) Do ¶ added in v0.3.0
func (c *MockExamineServiceCorrectCall) Do(f func(context.Context, int64, int64, domain.Result) error) *MockExamineServiceCorrectCall
Do rewrite *gomock.Call.Do for Correct.
func (*MockExamineServiceCorrectCall) DoAndReturn ¶ added in v0.3.0
func (c *MockExamineServiceCorrectCall) DoAndReturn(f func(context.Context, int64, int64, domain.Result) error) *MockExamineServiceCorrectCall
DoAndReturn rewrite *gomock.Call.DoAndReturn for Correct.
func (*MockExamineServiceCorrectCall) Return ¶ added in v0.3.0
func (c *MockExamineServiceCorrectCall) Return(arg0 error) *MockExamineServiceCorrectCall
Return rewrite *gomock.Call.Return for Correct.
type MockExamineServiceExamineCall ¶ added in v0.2.1
MockExamineServiceExamineCall wrap *gomock.Call
func (*MockExamineServiceExamineCall) Do ¶ added in v0.2.1
func (c *MockExamineServiceExamineCall) Do(f func(context.Context, int64, int64, string) (domain.ExamineResult, error)) *MockExamineServiceExamineCall
Do rewrite *gomock.Call.Do
func (*MockExamineServiceExamineCall) DoAndReturn ¶ added in v0.2.1
func (c *MockExamineServiceExamineCall) DoAndReturn(f func(context.Context, int64, int64, string) (domain.ExamineResult, error)) *MockExamineServiceExamineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExamineServiceExamineCall) Return ¶ added in v0.2.1
func (c *MockExamineServiceExamineCall) Return(arg0 domain.ExamineResult, arg1 error) *MockExamineServiceExamineCall
Return rewrite *gomock.Call.Return
type MockExamineServiceGetResultsCall ¶ added in v0.2.1
MockExamineServiceGetResultsCall wrap *gomock.Call
func (*MockExamineServiceGetResultsCall) Do ¶ added in v0.2.1
func (c *MockExamineServiceGetResultsCall) Do(f func(context.Context, int64, []int64) (map[int64]domain.ExamineResult, error)) *MockExamineServiceGetResultsCall
Do rewrite *gomock.Call.Do
func (*MockExamineServiceGetResultsCall) DoAndReturn ¶ added in v0.2.1
func (c *MockExamineServiceGetResultsCall) DoAndReturn(f func(context.Context, int64, []int64) (map[int64]domain.ExamineResult, error)) *MockExamineServiceGetResultsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExamineServiceGetResultsCall) Return ¶ added in v0.2.1
func (c *MockExamineServiceGetResultsCall) Return(arg0 map[int64]domain.ExamineResult, arg1 error) *MockExamineServiceGetResultsCall
Return rewrite *gomock.Call.Return
type MockExamineServiceMockRecorder ¶ added in v0.2.1
type MockExamineServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockExamineServiceMockRecorder is the mock recorder for MockExamineService.
func (*MockExamineServiceMockRecorder) Correct ¶ added in v0.3.0
func (mr *MockExamineServiceMockRecorder) Correct(ctx, uid, qid, questionResult any) *MockExamineServiceCorrectCall
Correct indicates an expected call of Correct.
func (*MockExamineServiceMockRecorder) Examine ¶ added in v0.2.1
func (mr *MockExamineServiceMockRecorder) Examine(ctx, uid, qid, input any) *MockExamineServiceExamineCall
Examine indicates an expected call of Examine.
func (*MockExamineServiceMockRecorder) GetResults ¶ added in v0.2.1
func (mr *MockExamineServiceMockRecorder) GetResults(ctx, uid, ids any) *MockExamineServiceGetResultsCall
GetResults indicates an expected call of GetResults.
func (*MockExamineServiceMockRecorder) QuestionResult ¶ added in v0.2.1
func (mr *MockExamineServiceMockRecorder) QuestionResult(ctx, uid, qid any) *MockExamineServiceQuestionResultCall
QuestionResult indicates an expected call of QuestionResult.
type MockExamineServiceQuestionResultCall ¶ added in v0.2.1
MockExamineServiceQuestionResultCall wrap *gomock.Call
func (*MockExamineServiceQuestionResultCall) Do ¶ added in v0.2.1
func (c *MockExamineServiceQuestionResultCall) Do(f func(context.Context, int64, int64) (domain.Result, error)) *MockExamineServiceQuestionResultCall
Do rewrite *gomock.Call.Do
func (*MockExamineServiceQuestionResultCall) DoAndReturn ¶ added in v0.2.1
func (c *MockExamineServiceQuestionResultCall) DoAndReturn(f func(context.Context, int64, int64) (domain.Result, error)) *MockExamineServiceQuestionResultCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockExamineServiceQuestionResultCall) Return ¶ added in v0.2.1
func (c *MockExamineServiceQuestionResultCall) Return(arg0 domain.Result, arg1 error) *MockExamineServiceQuestionResultCall
Return rewrite *gomock.Call.Return
type MockQuestionSetService ¶ added in v0.1.7
type MockQuestionSetService struct {
// contains filtered or unexported fields
}
MockQuestionSetService is a mock of QuestionSetService interface.
func NewMockQuestionSetService ¶ added in v0.1.7
func NewMockQuestionSetService(ctrl *gomock.Controller) *MockQuestionSetService
NewMockQuestionSetService creates a new mock instance.
func (*MockQuestionSetService) Detail ¶ added in v0.1.7
func (m *MockQuestionSetService) Detail(ctx context.Context, id int64) (domain.QuestionSet, error)
Detail mocks base method.
func (*MockQuestionSetService) DetailByBiz ¶ added in v0.1.8
func (m *MockQuestionSetService) DetailByBiz(ctx context.Context, biz string, bizId int64) (domain.QuestionSet, error)
DetailByBiz mocks base method.
func (*MockQuestionSetService) EXPECT ¶ added in v0.1.7
func (m *MockQuestionSetService) EXPECT() *MockQuestionSetServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockQuestionSetService) GetByIDsWithQuestion ¶ added in v0.2.1
func (m *MockQuestionSetService) GetByIDsWithQuestion(ctx context.Context, ids []int64) ([]domain.QuestionSet, error)
GetByIDsWithQuestion mocks base method.
func (*MockQuestionSetService) GetByIds ¶ added in v0.1.7
func (m *MockQuestionSetService) GetByIds(ctx context.Context, ids []int64) ([]domain.QuestionSet, error)
GetByIds mocks base method.
func (*MockQuestionSetService) GetCandidates ¶ added in v0.2.1
func (m *MockQuestionSetService) GetCandidates(ctx context.Context, id int64, offset, limit int) ([]domain.Question, int64, error)
GetCandidates mocks base method.
func (*MockQuestionSetService) List ¶ added in v0.1.7
func (m *MockQuestionSetService) List(ctx context.Context, offset, limit int) ([]domain.QuestionSet, int64, error)
List mocks base method.
func (*MockQuestionSetService) ListDefault ¶ added in v0.1.8
func (m *MockQuestionSetService) ListDefault(ctx context.Context, offset, limit int) ([]domain.QuestionSet, int64, error)
ListDefault mocks base method.
func (*MockQuestionSetService) PubDetail ¶ added in v0.3.3
func (m *MockQuestionSetService) PubDetail(ctx context.Context, id int64) (domain.QuestionSet, error)
PubDetail mocks base method.
func (*MockQuestionSetService) Save ¶ added in v0.1.7
func (m *MockQuestionSetService) Save(ctx context.Context, set domain.QuestionSet) (int64, error)
Save mocks base method.
func (*MockQuestionSetService) UpdateQuestions ¶ added in v0.1.7
func (m *MockQuestionSetService) UpdateQuestions(ctx context.Context, set domain.QuestionSet) error
UpdateQuestions mocks base method.
type MockQuestionSetServiceMockRecorder ¶ added in v0.1.7
type MockQuestionSetServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockQuestionSetServiceMockRecorder is the mock recorder for MockQuestionSetService.
func (*MockQuestionSetServiceMockRecorder) Detail ¶ added in v0.1.7
func (mr *MockQuestionSetServiceMockRecorder) Detail(ctx, id any) *QuestionSetServiceDetailCall
Detail indicates an expected call of Detail.
func (*MockQuestionSetServiceMockRecorder) DetailByBiz ¶ added in v0.1.8
func (mr *MockQuestionSetServiceMockRecorder) DetailByBiz(ctx, biz, bizId any) *QuestionSetServiceDetailByBizCall
DetailByBiz indicates an expected call of DetailByBiz.
func (*MockQuestionSetServiceMockRecorder) GetByIDsWithQuestion ¶ added in v0.2.1
func (mr *MockQuestionSetServiceMockRecorder) GetByIDsWithQuestion(ctx, ids any) *QuestionSetServiceGetByIDsWithQuestionCall
GetByIDsWithQuestion indicates an expected call of GetByIDsWithQuestion.
func (*MockQuestionSetServiceMockRecorder) GetByIds ¶ added in v0.1.7
func (mr *MockQuestionSetServiceMockRecorder) GetByIds(ctx, ids any) *QuestionSetServiceGetByIdsCall
GetByIds indicates an expected call of GetByIds.
func (*MockQuestionSetServiceMockRecorder) GetCandidates ¶ added in v0.2.1
func (mr *MockQuestionSetServiceMockRecorder) GetCandidates(ctx, id, offset, limit any) *QuestionSetServiceGetCandidatesCall
GetCandidates indicates an expected call of GetCandidates.
func (*MockQuestionSetServiceMockRecorder) List ¶ added in v0.1.7
func (mr *MockQuestionSetServiceMockRecorder) List(ctx, offset, limit any) *QuestionSetServiceListCall
List indicates an expected call of List.
func (*MockQuestionSetServiceMockRecorder) ListDefault ¶ added in v0.1.8
func (mr *MockQuestionSetServiceMockRecorder) ListDefault(ctx, offset, limit any) *QuestionSetServiceListDefaultCall
ListDefault indicates an expected call of ListDefault.
func (*MockQuestionSetServiceMockRecorder) PubDetail ¶ added in v0.3.3
func (mr *MockQuestionSetServiceMockRecorder) PubDetail(ctx, id any) *QuestionSetServicePubDetailCall
PubDetail indicates an expected call of PubDetail.
func (*MockQuestionSetServiceMockRecorder) Save ¶ added in v0.1.7
func (mr *MockQuestionSetServiceMockRecorder) Save(ctx, set any) *QuestionSetServiceSaveCall
Save indicates an expected call of Save.
func (*MockQuestionSetServiceMockRecorder) UpdateQuestions ¶ added in v0.1.7
func (mr *MockQuestionSetServiceMockRecorder) UpdateQuestions(ctx, set any) *QuestionSetServiceUpdateQuestionsCall
UpdateQuestions indicates an expected call of UpdateQuestions.
type MockService ¶
type MockService struct {
// contains filtered or unexported fields
}
MockService is a mock of Service interface.
func NewMockService ¶
func NewMockService(ctrl *gomock.Controller) *MockService
NewMockService creates a new mock instance.
func (*MockService) Delete ¶ added in v0.1.0
func (m *MockService) Delete(ctx context.Context, qid int64) error
Delete mocks base method.
func (*MockService) EXPECT ¶
func (m *MockService) EXPECT() *MockServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockService) GetPubByIDs ¶
GetPubByIDs mocks base method.
func (*MockService) List ¶
func (m *MockService) List(ctx context.Context, offset, limit int) ([]domain.Question, int64, error)
List mocks base method.
func (*MockService) PubList ¶
func (m *MockService) PubList(ctx context.Context, offset, limit int) (int64, []domain.Question, error)
PubList mocks base method.
type MockServiceDeleteCall ¶ added in v0.3.3
MockServiceDeleteCall wrap *gomock.Call
func (*MockServiceDeleteCall) Do ¶ added in v0.3.3
func (c *MockServiceDeleteCall) Do(f func(context.Context, int64) error) *MockServiceDeleteCall
Do rewrite *gomock.Call.Do
func (*MockServiceDeleteCall) DoAndReturn ¶ added in v0.3.3
func (c *MockServiceDeleteCall) DoAndReturn(f func(context.Context, int64) error) *MockServiceDeleteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceDeleteCall) Return ¶ added in v0.3.3
func (c *MockServiceDeleteCall) Return(arg0 error) *MockServiceDeleteCall
Return rewrite *gomock.Call.Return
type MockServiceDetailCall ¶ added in v0.3.3
MockServiceDetailCall wrap *gomock.Call
func (*MockServiceDetailCall) Do ¶ added in v0.3.3
func (c *MockServiceDetailCall) Do(f func(context.Context, int64) (domain.Question, error)) *MockServiceDetailCall
Do rewrite *gomock.Call.Do
func (*MockServiceDetailCall) DoAndReturn ¶ added in v0.3.3
func (c *MockServiceDetailCall) DoAndReturn(f func(context.Context, int64) (domain.Question, error)) *MockServiceDetailCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceDetailCall) Return ¶ added in v0.3.3
func (c *MockServiceDetailCall) Return(arg0 domain.Question, arg1 error) *MockServiceDetailCall
Return rewrite *gomock.Call.Return
type MockServiceGetPubByIDsCall ¶ added in v0.3.3
MockServiceGetPubByIDsCall wrap *gomock.Call
func (*MockServiceGetPubByIDsCall) Do ¶ added in v0.3.3
func (c *MockServiceGetPubByIDsCall) Do(f func(context.Context, []int64) ([]domain.Question, error)) *MockServiceGetPubByIDsCall
Do rewrite *gomock.Call.Do
func (*MockServiceGetPubByIDsCall) DoAndReturn ¶ added in v0.3.3
func (c *MockServiceGetPubByIDsCall) DoAndReturn(f func(context.Context, []int64) ([]domain.Question, error)) *MockServiceGetPubByIDsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceGetPubByIDsCall) Return ¶ added in v0.3.3
func (c *MockServiceGetPubByIDsCall) Return(arg0 []domain.Question, arg1 error) *MockServiceGetPubByIDsCall
Return rewrite *gomock.Call.Return
type MockServiceListCall ¶ added in v0.3.3
MockServiceListCall wrap *gomock.Call
func (*MockServiceListCall) Do ¶ added in v0.3.3
func (c *MockServiceListCall) Do(f func(context.Context, int, int) ([]domain.Question, int64, error)) *MockServiceListCall
Do rewrite *gomock.Call.Do
func (*MockServiceListCall) DoAndReturn ¶ added in v0.3.3
func (c *MockServiceListCall) DoAndReturn(f func(context.Context, int, int) ([]domain.Question, int64, error)) *MockServiceListCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceListCall) Return ¶ added in v0.3.3
func (c *MockServiceListCall) Return(arg0 []domain.Question, arg1 int64, arg2 error) *MockServiceListCall
Return rewrite *gomock.Call.Return
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) Delete ¶ added in v0.1.0
func (mr *MockServiceMockRecorder) Delete(ctx, qid any) *MockServiceDeleteCall
Delete indicates an expected call of Delete.
func (*MockServiceMockRecorder) Detail ¶
func (mr *MockServiceMockRecorder) Detail(ctx, qid any) *MockServiceDetailCall
Detail indicates an expected call of Detail.
func (*MockServiceMockRecorder) GetPubByIDs ¶
func (mr *MockServiceMockRecorder) GetPubByIDs(ctx, ids any) *MockServiceGetPubByIDsCall
GetPubByIDs indicates an expected call of GetPubByIDs.
func (*MockServiceMockRecorder) List ¶
func (mr *MockServiceMockRecorder) List(ctx, offset, limit any) *MockServiceListCall
List indicates an expected call of List.
func (*MockServiceMockRecorder) PubDetail ¶
func (mr *MockServiceMockRecorder) PubDetail(ctx, qid any) *MockServicePubDetailCall
PubDetail indicates an expected call of PubDetail.
func (*MockServiceMockRecorder) PubList ¶
func (mr *MockServiceMockRecorder) PubList(ctx, offset, limit any) *MockServicePubListCall
PubList indicates an expected call of PubList.
func (*MockServiceMockRecorder) Publish ¶
func (mr *MockServiceMockRecorder) Publish(ctx, que any) *MockServicePublishCall
Publish indicates an expected call of Publish.
func (*MockServiceMockRecorder) Save ¶
func (mr *MockServiceMockRecorder) Save(ctx, question any) *MockServiceSaveCall
Save indicates an expected call of Save.
type MockServicePubDetailCall ¶ added in v0.3.3
MockServicePubDetailCall wrap *gomock.Call
func (*MockServicePubDetailCall) Do ¶ added in v0.3.3
func (c *MockServicePubDetailCall) Do(f func(context.Context, int64) (domain.Question, error)) *MockServicePubDetailCall
Do rewrite *gomock.Call.Do
func (*MockServicePubDetailCall) DoAndReturn ¶ added in v0.3.3
func (c *MockServicePubDetailCall) DoAndReturn(f func(context.Context, int64) (domain.Question, error)) *MockServicePubDetailCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServicePubDetailCall) Return ¶ added in v0.3.3
func (c *MockServicePubDetailCall) Return(arg0 domain.Question, arg1 error) *MockServicePubDetailCall
Return rewrite *gomock.Call.Return
type MockServicePubListCall ¶ added in v0.3.3
MockServicePubListCall wrap *gomock.Call
func (*MockServicePubListCall) Do ¶ added in v0.3.3
func (c *MockServicePubListCall) Do(f func(context.Context, int, int) (int64, []domain.Question, error)) *MockServicePubListCall
Do rewrite *gomock.Call.Do
func (*MockServicePubListCall) DoAndReturn ¶ added in v0.3.3
func (c *MockServicePubListCall) DoAndReturn(f func(context.Context, int, int) (int64, []domain.Question, error)) *MockServicePubListCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServicePubListCall) Return ¶ added in v0.3.3
func (c *MockServicePubListCall) Return(arg0 int64, arg1 []domain.Question, arg2 error) *MockServicePubListCall
Return rewrite *gomock.Call.Return
type MockServicePublishCall ¶ added in v0.3.3
MockServicePublishCall wrap *gomock.Call
func (*MockServicePublishCall) Do ¶ added in v0.3.3
func (c *MockServicePublishCall) Do(f func(context.Context, *domain.Question) (int64, error)) *MockServicePublishCall
Do rewrite *gomock.Call.Do
func (*MockServicePublishCall) DoAndReturn ¶ added in v0.3.3
func (c *MockServicePublishCall) DoAndReturn(f func(context.Context, *domain.Question) (int64, error)) *MockServicePublishCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServicePublishCall) Return ¶ added in v0.3.3
func (c *MockServicePublishCall) Return(arg0 int64, arg1 error) *MockServicePublishCall
Return rewrite *gomock.Call.Return
type MockServiceSaveCall ¶ added in v0.3.3
MockServiceSaveCall wrap *gomock.Call
func (*MockServiceSaveCall) Do ¶ added in v0.3.3
func (c *MockServiceSaveCall) Do(f func(context.Context, *domain.Question) (int64, error)) *MockServiceSaveCall
Do rewrite *gomock.Call.Do
func (*MockServiceSaveCall) DoAndReturn ¶ added in v0.3.3
func (c *MockServiceSaveCall) DoAndReturn(f func(context.Context, *domain.Question) (int64, error)) *MockServiceSaveCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*MockServiceSaveCall) Return ¶ added in v0.3.3
func (c *MockServiceSaveCall) Return(arg0 int64, arg1 error) *MockServiceSaveCall
Return rewrite *gomock.Call.Return
type QuestionSetServiceDetailByBizCall ¶ added in v0.1.8
QuestionSetServiceDetailByBizCall wrap *gomock.Call
func (*QuestionSetServiceDetailByBizCall) Do ¶ added in v0.1.8
func (c *QuestionSetServiceDetailByBizCall) Do(f func(context.Context, string, int64) (domain.QuestionSet, error)) *QuestionSetServiceDetailByBizCall
Do rewrite *gomock.Call.Do
func (*QuestionSetServiceDetailByBizCall) DoAndReturn ¶ added in v0.1.8
func (c *QuestionSetServiceDetailByBizCall) DoAndReturn(f func(context.Context, string, int64) (domain.QuestionSet, error)) *QuestionSetServiceDetailByBizCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuestionSetServiceDetailByBizCall) Return ¶ added in v0.1.8
func (c *QuestionSetServiceDetailByBizCall) Return(arg0 domain.QuestionSet, arg1 error) *QuestionSetServiceDetailByBizCall
Return rewrite *gomock.Call.Return
type QuestionSetServiceDetailCall ¶ added in v0.1.7
QuestionSetServiceDetailCall wrap *gomock.Call
func (*QuestionSetServiceDetailCall) Do ¶ added in v0.1.7
func (c *QuestionSetServiceDetailCall) Do(f func(context.Context, int64) (domain.QuestionSet, error)) *QuestionSetServiceDetailCall
Do rewrite *gomock.Call.Do
func (*QuestionSetServiceDetailCall) DoAndReturn ¶ added in v0.1.7
func (c *QuestionSetServiceDetailCall) DoAndReturn(f func(context.Context, int64) (domain.QuestionSet, error)) *QuestionSetServiceDetailCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuestionSetServiceDetailCall) Return ¶ added in v0.1.7
func (c *QuestionSetServiceDetailCall) Return(arg0 domain.QuestionSet, arg1 error) *QuestionSetServiceDetailCall
Return rewrite *gomock.Call.Return
type QuestionSetServiceGetByIDsWithQuestionCall ¶ added in v0.3.3
QuestionSetServiceGetByIDsWithQuestionCall wrap *gomock.Call
func (*QuestionSetServiceGetByIDsWithQuestionCall) Do ¶ added in v0.3.3
func (c *QuestionSetServiceGetByIDsWithQuestionCall) Do(f func(context.Context, []int64) ([]domain.QuestionSet, error)) *QuestionSetServiceGetByIDsWithQuestionCall
Do rewrite *gomock.Call.Do
func (*QuestionSetServiceGetByIDsWithQuestionCall) DoAndReturn ¶ added in v0.3.3
func (c *QuestionSetServiceGetByIDsWithQuestionCall) DoAndReturn(f func(context.Context, []int64) ([]domain.QuestionSet, error)) *QuestionSetServiceGetByIDsWithQuestionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuestionSetServiceGetByIDsWithQuestionCall) Return ¶ added in v0.3.3
func (c *QuestionSetServiceGetByIDsWithQuestionCall) Return(arg0 []domain.QuestionSet, arg1 error) *QuestionSetServiceGetByIDsWithQuestionCall
Return rewrite *gomock.Call.Return
type QuestionSetServiceGetByIdsCall ¶ added in v0.1.7
QuestionSetServiceGetByIdsCall wrap *gomock.Call
func (*QuestionSetServiceGetByIdsCall) Do ¶ added in v0.1.7
func (c *QuestionSetServiceGetByIdsCall) Do(f func(context.Context, []int64) ([]domain.QuestionSet, error)) *QuestionSetServiceGetByIdsCall
Do rewrite *gomock.Call.Do
func (*QuestionSetServiceGetByIdsCall) DoAndReturn ¶ added in v0.1.7
func (c *QuestionSetServiceGetByIdsCall) DoAndReturn(f func(context.Context, []int64) ([]domain.QuestionSet, error)) *QuestionSetServiceGetByIdsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuestionSetServiceGetByIdsCall) Return ¶ added in v0.1.7
func (c *QuestionSetServiceGetByIdsCall) Return(arg0 []domain.QuestionSet, arg1 error) *QuestionSetServiceGetByIdsCall
Return rewrite *gomock.Call.Return
type QuestionSetServiceGetCandidatesCall ¶ added in v0.3.3
QuestionSetServiceGetCandidatesCall wrap *gomock.Call
func (*QuestionSetServiceGetCandidatesCall) Do ¶ added in v0.3.3
func (c *QuestionSetServiceGetCandidatesCall) Do(f func(context.Context, int64, int, int) ([]domain.Question, int64, error)) *QuestionSetServiceGetCandidatesCall
Do rewrite *gomock.Call.Do
func (*QuestionSetServiceGetCandidatesCall) DoAndReturn ¶ added in v0.3.3
func (c *QuestionSetServiceGetCandidatesCall) DoAndReturn(f func(context.Context, int64, int, int) ([]domain.Question, int64, error)) *QuestionSetServiceGetCandidatesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuestionSetServiceGetCandidatesCall) Return ¶ added in v0.3.3
func (c *QuestionSetServiceGetCandidatesCall) Return(arg0 []domain.Question, arg1 int64, arg2 error) *QuestionSetServiceGetCandidatesCall
Return rewrite *gomock.Call.Return
type QuestionSetServiceListCall ¶ added in v0.1.7
QuestionSetServiceListCall wrap *gomock.Call
func (*QuestionSetServiceListCall) Do ¶ added in v0.1.7
func (c *QuestionSetServiceListCall) Do(f func(context.Context, int, int) ([]domain.QuestionSet, int64, error)) *QuestionSetServiceListCall
Do rewrite *gomock.Call.Do
func (*QuestionSetServiceListCall) DoAndReturn ¶ added in v0.1.7
func (c *QuestionSetServiceListCall) DoAndReturn(f func(context.Context, int, int) ([]domain.QuestionSet, int64, error)) *QuestionSetServiceListCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuestionSetServiceListCall) Return ¶ added in v0.1.7
func (c *QuestionSetServiceListCall) Return(arg0 []domain.QuestionSet, arg1 int64, arg2 error) *QuestionSetServiceListCall
Return rewrite *gomock.Call.Return
type QuestionSetServiceListDefaultCall ¶ added in v0.1.8
QuestionSetServiceListDefaultCall wrap *gomock.Call
func (*QuestionSetServiceListDefaultCall) Do ¶ added in v0.1.8
func (c *QuestionSetServiceListDefaultCall) Do(f func(context.Context, int, int) ([]domain.QuestionSet, int64, error)) *QuestionSetServiceListDefaultCall
Do rewrite *gomock.Call.Do
func (*QuestionSetServiceListDefaultCall) DoAndReturn ¶ added in v0.1.8
func (c *QuestionSetServiceListDefaultCall) DoAndReturn(f func(context.Context, int, int) ([]domain.QuestionSet, int64, error)) *QuestionSetServiceListDefaultCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuestionSetServiceListDefaultCall) Return ¶ added in v0.1.8
func (c *QuestionSetServiceListDefaultCall) Return(arg0 []domain.QuestionSet, arg1 int64, arg2 error) *QuestionSetServiceListDefaultCall
Return rewrite *gomock.Call.Return
type QuestionSetServicePubDetailCall ¶ added in v0.3.3
QuestionSetServicePubDetailCall wrap *gomock.Call
func (*QuestionSetServicePubDetailCall) Do ¶ added in v0.3.3
func (c *QuestionSetServicePubDetailCall) Do(f func(context.Context, int64) (domain.QuestionSet, error)) *QuestionSetServicePubDetailCall
Do rewrite *gomock.Call.Do
func (*QuestionSetServicePubDetailCall) DoAndReturn ¶ added in v0.3.3
func (c *QuestionSetServicePubDetailCall) DoAndReturn(f func(context.Context, int64) (domain.QuestionSet, error)) *QuestionSetServicePubDetailCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuestionSetServicePubDetailCall) Return ¶ added in v0.3.3
func (c *QuestionSetServicePubDetailCall) Return(arg0 domain.QuestionSet, arg1 error) *QuestionSetServicePubDetailCall
Return rewrite *gomock.Call.Return
type QuestionSetServiceSaveCall ¶ added in v0.1.7
QuestionSetServiceSaveCall wrap *gomock.Call
func (*QuestionSetServiceSaveCall) Do ¶ added in v0.1.7
func (c *QuestionSetServiceSaveCall) Do(f func(context.Context, domain.QuestionSet) (int64, error)) *QuestionSetServiceSaveCall
Do rewrite *gomock.Call.Do
func (*QuestionSetServiceSaveCall) DoAndReturn ¶ added in v0.1.7
func (c *QuestionSetServiceSaveCall) DoAndReturn(f func(context.Context, domain.QuestionSet) (int64, error)) *QuestionSetServiceSaveCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuestionSetServiceSaveCall) Return ¶ added in v0.1.7
func (c *QuestionSetServiceSaveCall) Return(arg0 int64, arg1 error) *QuestionSetServiceSaveCall
Return rewrite *gomock.Call.Return
type QuestionSetServiceUpdateQuestionsCall ¶ added in v0.1.7
QuestionSetServiceUpdateQuestionsCall wrap *gomock.Call
func (*QuestionSetServiceUpdateQuestionsCall) Do ¶ added in v0.1.7
func (c *QuestionSetServiceUpdateQuestionsCall) Do(f func(context.Context, domain.QuestionSet) error) *QuestionSetServiceUpdateQuestionsCall
Do rewrite *gomock.Call.Do
func (*QuestionSetServiceUpdateQuestionsCall) DoAndReturn ¶ added in v0.1.7
func (c *QuestionSetServiceUpdateQuestionsCall) DoAndReturn(f func(context.Context, domain.QuestionSet) error) *QuestionSetServiceUpdateQuestionsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*QuestionSetServiceUpdateQuestionsCall) Return ¶ added in v0.1.7
func (c *QuestionSetServiceUpdateQuestionsCall) Return(arg0 error) *QuestionSetServiceUpdateQuestionsCall
Return rewrite *gomock.Call.Return