Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: ./case_set.go
Generated by this command:
mockgen -source=./case_set.go -destination=../../mocks/case_set.mock.go -package=casemocks -typed CaseSetService
Package casemocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: ./cases.go
Generated by this command:
mockgen -source=./cases.go -destination=../../mocks/cases.mock.go -package=casemocks -typed Service
Package casemocks is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: ./examine.go
Generated by this command:
mockgen -source=./examine.go -destination=../../mocks/examine.mock.go -package=quemocks -typed=true ExamineService
Package quemocks is a generated GoMock package.
Index ¶
- type CaseSetServiceDetailCall
- func (c *CaseSetServiceDetailCall) Do(f func(context.Context, int64) (domain.CaseSet, error)) *CaseSetServiceDetailCall
- func (c *CaseSetServiceDetailCall) DoAndReturn(f func(context.Context, int64) (domain.CaseSet, error)) *CaseSetServiceDetailCall
- func (c *CaseSetServiceDetailCall) Return(arg0 domain.CaseSet, arg1 error) *CaseSetServiceDetailCall
- type CaseSetServiceGetByBizCall
- func (c *CaseSetServiceGetByBizCall) Do(f func(context.Context, string, int64) (domain.CaseSet, error)) *CaseSetServiceGetByBizCall
- func (c *CaseSetServiceGetByBizCall) DoAndReturn(f func(context.Context, string, int64) (domain.CaseSet, error)) *CaseSetServiceGetByBizCall
- func (c *CaseSetServiceGetByBizCall) Return(arg0 domain.CaseSet, arg1 error) *CaseSetServiceGetByBizCall
- type CaseSetServiceGetByIdsCall
- func (c *CaseSetServiceGetByIdsCall) Do(f func(context.Context, []int64) ([]domain.CaseSet, error)) *CaseSetServiceGetByIdsCall
- func (c *CaseSetServiceGetByIdsCall) DoAndReturn(f func(context.Context, []int64) ([]domain.CaseSet, error)) *CaseSetServiceGetByIdsCall
- func (c *CaseSetServiceGetByIdsCall) Return(arg0 []domain.CaseSet, arg1 error) *CaseSetServiceGetByIdsCall
- type CaseSetServiceGetByIdsWithCasesCall
- func (c *CaseSetServiceGetByIdsWithCasesCall) Do(f func(context.Context, []int64) ([]domain.CaseSet, error)) *CaseSetServiceGetByIdsWithCasesCall
- func (c *CaseSetServiceGetByIdsWithCasesCall) DoAndReturn(f func(context.Context, []int64) ([]domain.CaseSet, error)) *CaseSetServiceGetByIdsWithCasesCall
- func (c *CaseSetServiceGetByIdsWithCasesCall) Return(arg0 []domain.CaseSet, arg1 error) *CaseSetServiceGetByIdsWithCasesCall
- type CaseSetServiceGetCandidatesCall
- func (c *CaseSetServiceGetCandidatesCall) Do(f func(context.Context, int64, int, int) ([]domain.Case, int64, error)) *CaseSetServiceGetCandidatesCall
- func (c *CaseSetServiceGetCandidatesCall) DoAndReturn(f func(context.Context, int64, int, int) ([]domain.Case, int64, error)) *CaseSetServiceGetCandidatesCall
- func (c *CaseSetServiceGetCandidatesCall) Return(arg0 []domain.Case, arg1 int64, arg2 error) *CaseSetServiceGetCandidatesCall
- type CaseSetServiceListByBizCall
- func (c *CaseSetServiceListByBizCall) Do(f func(context.Context, int, int, string) ([]domain.CaseSet, error)) *CaseSetServiceListByBizCall
- func (c *CaseSetServiceListByBizCall) DoAndReturn(f func(context.Context, int, int, string) ([]domain.CaseSet, error)) *CaseSetServiceListByBizCall
- func (c *CaseSetServiceListByBizCall) Return(arg0 []domain.CaseSet, arg1 error) *CaseSetServiceListByBizCall
- type CaseSetServiceListCall
- func (c *CaseSetServiceListCall) Do(f func(context.Context, int, int) ([]domain.CaseSet, int64, error)) *CaseSetServiceListCall
- func (c *CaseSetServiceListCall) DoAndReturn(f func(context.Context, int, int) ([]domain.CaseSet, int64, error)) *CaseSetServiceListCall
- func (c *CaseSetServiceListCall) Return(arg0 []domain.CaseSet, arg1 int64, arg2 error) *CaseSetServiceListCall
- type CaseSetServiceListDefaultCall
- func (c *CaseSetServiceListDefaultCall) Do(f func(context.Context, int, int) ([]domain.CaseSet, error)) *CaseSetServiceListDefaultCall
- func (c *CaseSetServiceListDefaultCall) DoAndReturn(f func(context.Context, int, int) ([]domain.CaseSet, error)) *CaseSetServiceListDefaultCall
- func (c *CaseSetServiceListDefaultCall) Return(arg0 []domain.CaseSet, arg1 error) *CaseSetServiceListDefaultCall
- type CaseSetServiceSaveCall
- func (c *CaseSetServiceSaveCall) Do(f func(context.Context, domain.CaseSet) (int64, error)) *CaseSetServiceSaveCall
- func (c *CaseSetServiceSaveCall) DoAndReturn(f func(context.Context, domain.CaseSet) (int64, error)) *CaseSetServiceSaveCall
- func (c *CaseSetServiceSaveCall) Return(arg0 int64, arg1 error) *CaseSetServiceSaveCall
- type CaseSetServiceUpdateCasesCall
- func (c *CaseSetServiceUpdateCasesCall) Do(f func(context.Context, domain.CaseSet) error) *CaseSetServiceUpdateCasesCall
- func (c *CaseSetServiceUpdateCasesCall) DoAndReturn(f func(context.Context, domain.CaseSet) error) *CaseSetServiceUpdateCasesCall
- func (c *CaseSetServiceUpdateCasesCall) Return(arg0 error) *CaseSetServiceUpdateCasesCall
- type ExamineServiceExamineCall
- type ExamineServiceGetResultCall
- func (c *ExamineServiceGetResultCall) Do(f func(context.Context, int64, int64) (domain.CaseResult, error)) *ExamineServiceGetResultCall
- func (c *ExamineServiceGetResultCall) DoAndReturn(f func(context.Context, int64, int64) (domain.CaseResult, error)) *ExamineServiceGetResultCall
- func (c *ExamineServiceGetResultCall) Return(arg0 domain.CaseResult, arg1 error) *ExamineServiceGetResultCall
- type ExamineServiceGetResultsCall
- type MockCaseSetService
- func (m *MockCaseSetService) Detail(ctx context.Context, id int64) (domain.CaseSet, error)
- func (m *MockCaseSetService) EXPECT() *MockCaseSetServiceMockRecorder
- func (m *MockCaseSetService) GetByBiz(ctx context.Context, biz string, bizId int64) (domain.CaseSet, error)
- func (m *MockCaseSetService) GetByIds(ctx context.Context, ids []int64) ([]domain.CaseSet, error)
- func (m *MockCaseSetService) GetByIdsWithCases(ctx context.Context, ids []int64) ([]domain.CaseSet, error)
- func (m *MockCaseSetService) GetCandidates(ctx context.Context, id int64, offset, limit int) ([]domain.Case, int64, error)
- func (m *MockCaseSetService) List(ctx context.Context, offset, limit int) ([]domain.CaseSet, int64, error)
- func (m *MockCaseSetService) ListByBiz(ctx context.Context, offset, limit int, biz string) ([]domain.CaseSet, error)
- func (m *MockCaseSetService) ListDefault(ctx context.Context, offset, limit int) ([]domain.CaseSet, error)
- func (m *MockCaseSetService) Save(ctx context.Context, set domain.CaseSet) (int64, error)
- func (m *MockCaseSetService) UpdateCases(ctx context.Context, set domain.CaseSet) error
- type MockCaseSetServiceMockRecorder
- func (mr *MockCaseSetServiceMockRecorder) Detail(ctx, id any) *CaseSetServiceDetailCall
- func (mr *MockCaseSetServiceMockRecorder) GetByBiz(ctx, biz, bizId any) *CaseSetServiceGetByBizCall
- func (mr *MockCaseSetServiceMockRecorder) GetByIds(ctx, ids any) *CaseSetServiceGetByIdsCall
- func (mr *MockCaseSetServiceMockRecorder) GetByIdsWithCases(ctx, ids any) *CaseSetServiceGetByIdsWithCasesCall
- func (mr *MockCaseSetServiceMockRecorder) GetCandidates(ctx, id, offset, limit any) *CaseSetServiceGetCandidatesCall
- func (mr *MockCaseSetServiceMockRecorder) List(ctx, offset, limit any) *CaseSetServiceListCall
- func (mr *MockCaseSetServiceMockRecorder) ListByBiz(ctx, offset, limit, biz any) *CaseSetServiceListByBizCall
- func (mr *MockCaseSetServiceMockRecorder) ListDefault(ctx, offset, limit any) *CaseSetServiceListDefaultCall
- func (mr *MockCaseSetServiceMockRecorder) Save(ctx, set any) *CaseSetServiceSaveCall
- func (mr *MockCaseSetServiceMockRecorder) UpdateCases(ctx, set any) *CaseSetServiceUpdateCasesCall
- type MockExamineService
- func (m *MockExamineService) EXPECT() *MockExamineServiceMockRecorder
- func (m *MockExamineService) Examine(ctx context.Context, uid, cid int64, input string) (domain.ExamineCaseResult, error)
- func (m *MockExamineService) GetResult(ctx context.Context, uid, cid int64) (domain.CaseResult, error)
- func (m *MockExamineService) GetResults(ctx context.Context, uid int64, ids []int64) (map[int64]domain.ExamineCaseResult, error)
- type MockExamineServiceMockRecorder
- func (mr *MockExamineServiceMockRecorder) Examine(ctx, uid, cid, input any) *ExamineServiceExamineCall
- func (mr *MockExamineServiceMockRecorder) GetResult(ctx, uid, cid any) *ExamineServiceGetResultCall
- func (mr *MockExamineServiceMockRecorder) GetResults(ctx, uid, ids any) *ExamineServiceGetResultsCall
- type MockService
- func (m *MockService) Detail(ctx context.Context, caseId int64) (domain.Case, error)
- func (m *MockService) EXPECT() *MockServiceMockRecorder
- func (m *MockService) GetPubByIDs(ctx context.Context, ids []int64) ([]domain.Case, error)
- func (m *MockService) List(ctx context.Context, offset, limit int) ([]domain.Case, int64, error)
- func (m *MockService) PubDetail(ctx context.Context, caseId int64) (domain.Case, error)
- func (m *MockService) PubList(ctx context.Context, offset, limit int) ([]domain.Case, error)
- func (m *MockService) Publish(ctx context.Context, ca domain.Case) (int64, error)
- func (m *MockService) Save(ctx context.Context, ca domain.Case) (int64, error)
- type MockServiceMockRecorder
- func (mr *MockServiceMockRecorder) Detail(ctx, caseId any) *ServiceDetailCall
- func (mr *MockServiceMockRecorder) GetPubByIDs(ctx, ids any) *ServiceGetPubByIDsCall
- func (mr *MockServiceMockRecorder) List(ctx, offset, limit any) *ServiceListCall
- func (mr *MockServiceMockRecorder) PubDetail(ctx, caseId any) *ServicePubDetailCall
- func (mr *MockServiceMockRecorder) PubList(ctx, offset, limit any) *ServicePubListCall
- func (mr *MockServiceMockRecorder) Publish(ctx, ca any) *ServicePublishCall
- func (mr *MockServiceMockRecorder) Save(ctx, ca any) *ServiceSaveCall
- type ServiceDetailCall
- type ServiceGetPubByIDsCall
- func (c *ServiceGetPubByIDsCall) Do(f func(context.Context, []int64) ([]domain.Case, error)) *ServiceGetPubByIDsCall
- func (c *ServiceGetPubByIDsCall) DoAndReturn(f func(context.Context, []int64) ([]domain.Case, error)) *ServiceGetPubByIDsCall
- func (c *ServiceGetPubByIDsCall) Return(arg0 []domain.Case, arg1 error) *ServiceGetPubByIDsCall
- type ServiceListCall
- func (c *ServiceListCall) Do(f func(context.Context, int, int) ([]domain.Case, int64, error)) *ServiceListCall
- func (c *ServiceListCall) DoAndReturn(f func(context.Context, int, int) ([]domain.Case, int64, error)) *ServiceListCall
- func (c *ServiceListCall) Return(arg0 []domain.Case, arg1 int64, arg2 error) *ServiceListCall
- type ServicePubDetailCall
- func (c *ServicePubDetailCall) Do(f func(context.Context, int64) (domain.Case, error)) *ServicePubDetailCall
- func (c *ServicePubDetailCall) DoAndReturn(f func(context.Context, int64) (domain.Case, error)) *ServicePubDetailCall
- func (c *ServicePubDetailCall) Return(arg0 domain.Case, arg1 error) *ServicePubDetailCall
- type ServicePubListCall
- func (c *ServicePubListCall) Do(f func(context.Context, int, int) ([]domain.Case, error)) *ServicePubListCall
- func (c *ServicePubListCall) DoAndReturn(f func(context.Context, int, int) ([]domain.Case, error)) *ServicePubListCall
- func (c *ServicePubListCall) Return(arg0 []domain.Case, arg1 error) *ServicePubListCall
- type ServicePublishCall
- type ServiceSaveCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CaseSetServiceDetailCall ¶ added in v0.2.1
CaseSetServiceDetailCall wrap *gomock.Call
func (*CaseSetServiceDetailCall) Do ¶ added in v0.2.1
func (c *CaseSetServiceDetailCall) Do(f func(context.Context, int64) (domain.CaseSet, error)) *CaseSetServiceDetailCall
Do rewrite *gomock.Call.Do
func (*CaseSetServiceDetailCall) DoAndReturn ¶ added in v0.2.1
func (c *CaseSetServiceDetailCall) DoAndReturn(f func(context.Context, int64) (domain.CaseSet, error)) *CaseSetServiceDetailCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*CaseSetServiceDetailCall) Return ¶ added in v0.2.1
func (c *CaseSetServiceDetailCall) Return(arg0 domain.CaseSet, arg1 error) *CaseSetServiceDetailCall
Return rewrite *gomock.Call.Return
type CaseSetServiceGetByBizCall ¶ added in v0.2.1
CaseSetServiceGetByBizCall wrap *gomock.Call
func (*CaseSetServiceGetByBizCall) Do ¶ added in v0.2.1
func (c *CaseSetServiceGetByBizCall) Do(f func(context.Context, string, int64) (domain.CaseSet, error)) *CaseSetServiceGetByBizCall
Do rewrite *gomock.Call.Do
func (*CaseSetServiceGetByBizCall) DoAndReturn ¶ added in v0.2.1
func (c *CaseSetServiceGetByBizCall) DoAndReturn(f func(context.Context, string, int64) (domain.CaseSet, error)) *CaseSetServiceGetByBizCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*CaseSetServiceGetByBizCall) Return ¶ added in v0.2.1
func (c *CaseSetServiceGetByBizCall) Return(arg0 domain.CaseSet, arg1 error) *CaseSetServiceGetByBizCall
Return rewrite *gomock.Call.Return
type CaseSetServiceGetByIdsCall ¶ added in v0.2.1
CaseSetServiceGetByIdsCall wrap *gomock.Call
func (*CaseSetServiceGetByIdsCall) Do ¶ added in v0.2.1
func (c *CaseSetServiceGetByIdsCall) Do(f func(context.Context, []int64) ([]domain.CaseSet, error)) *CaseSetServiceGetByIdsCall
Do rewrite *gomock.Call.Do
func (*CaseSetServiceGetByIdsCall) DoAndReturn ¶ added in v0.2.1
func (c *CaseSetServiceGetByIdsCall) DoAndReturn(f func(context.Context, []int64) ([]domain.CaseSet, error)) *CaseSetServiceGetByIdsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*CaseSetServiceGetByIdsCall) Return ¶ added in v0.2.1
func (c *CaseSetServiceGetByIdsCall) Return(arg0 []domain.CaseSet, arg1 error) *CaseSetServiceGetByIdsCall
Return rewrite *gomock.Call.Return
type CaseSetServiceGetByIdsWithCasesCall ¶ added in v0.3.0
CaseSetServiceGetByIdsWithCasesCall wrap *gomock.Call
func (*CaseSetServiceGetByIdsWithCasesCall) Do ¶ added in v0.3.0
func (c *CaseSetServiceGetByIdsWithCasesCall) Do(f func(context.Context, []int64) ([]domain.CaseSet, error)) *CaseSetServiceGetByIdsWithCasesCall
Do rewrite *gomock.Call.Do
func (*CaseSetServiceGetByIdsWithCasesCall) DoAndReturn ¶ added in v0.3.0
func (c *CaseSetServiceGetByIdsWithCasesCall) DoAndReturn(f func(context.Context, []int64) ([]domain.CaseSet, error)) *CaseSetServiceGetByIdsWithCasesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*CaseSetServiceGetByIdsWithCasesCall) Return ¶ added in v0.3.0
func (c *CaseSetServiceGetByIdsWithCasesCall) Return(arg0 []domain.CaseSet, arg1 error) *CaseSetServiceGetByIdsWithCasesCall
Return rewrite *gomock.Call.Return
type CaseSetServiceGetCandidatesCall ¶ added in v0.2.1
CaseSetServiceGetCandidatesCall wrap *gomock.Call
func (*CaseSetServiceGetCandidatesCall) Do ¶ added in v0.2.1
func (c *CaseSetServiceGetCandidatesCall) Do(f func(context.Context, int64, int, int) ([]domain.Case, int64, error)) *CaseSetServiceGetCandidatesCall
Do rewrite *gomock.Call.Do
func (*CaseSetServiceGetCandidatesCall) DoAndReturn ¶ added in v0.2.1
func (c *CaseSetServiceGetCandidatesCall) DoAndReturn(f func(context.Context, int64, int, int) ([]domain.Case, int64, error)) *CaseSetServiceGetCandidatesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*CaseSetServiceGetCandidatesCall) Return ¶ added in v0.2.1
func (c *CaseSetServiceGetCandidatesCall) Return(arg0 []domain.Case, arg1 int64, arg2 error) *CaseSetServiceGetCandidatesCall
Return rewrite *gomock.Call.Return
type CaseSetServiceListByBizCall ¶ added in v0.2.1
CaseSetServiceListByBizCall wrap *gomock.Call
func (*CaseSetServiceListByBizCall) Do ¶ added in v0.2.1
func (c *CaseSetServiceListByBizCall) Do(f func(context.Context, int, int, string) ([]domain.CaseSet, error)) *CaseSetServiceListByBizCall
Do rewrite *gomock.Call.Do
func (*CaseSetServiceListByBizCall) DoAndReturn ¶ added in v0.2.1
func (c *CaseSetServiceListByBizCall) DoAndReturn(f func(context.Context, int, int, string) ([]domain.CaseSet, error)) *CaseSetServiceListByBizCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*CaseSetServiceListByBizCall) Return ¶ added in v0.2.1
func (c *CaseSetServiceListByBizCall) Return(arg0 []domain.CaseSet, arg1 error) *CaseSetServiceListByBizCall
Return rewrite *gomock.Call.Return
type CaseSetServiceListCall ¶ added in v0.2.1
CaseSetServiceListCall wrap *gomock.Call
func (*CaseSetServiceListCall) Do ¶ added in v0.2.1
func (c *CaseSetServiceListCall) Do(f func(context.Context, int, int) ([]domain.CaseSet, int64, error)) *CaseSetServiceListCall
Do rewrite *gomock.Call.Do
func (*CaseSetServiceListCall) DoAndReturn ¶ added in v0.2.1
func (c *CaseSetServiceListCall) DoAndReturn(f func(context.Context, int, int) ([]domain.CaseSet, int64, error)) *CaseSetServiceListCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*CaseSetServiceListCall) Return ¶ added in v0.2.1
func (c *CaseSetServiceListCall) Return(arg0 []domain.CaseSet, arg1 int64, arg2 error) *CaseSetServiceListCall
Return rewrite *gomock.Call.Return
type CaseSetServiceListDefaultCall ¶ added in v0.2.1
CaseSetServiceListDefaultCall wrap *gomock.Call
func (*CaseSetServiceListDefaultCall) Do ¶ added in v0.2.1
func (c *CaseSetServiceListDefaultCall) Do(f func(context.Context, int, int) ([]domain.CaseSet, error)) *CaseSetServiceListDefaultCall
Do rewrite *gomock.Call.Do
func (*CaseSetServiceListDefaultCall) DoAndReturn ¶ added in v0.2.1
func (c *CaseSetServiceListDefaultCall) DoAndReturn(f func(context.Context, int, int) ([]domain.CaseSet, error)) *CaseSetServiceListDefaultCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*CaseSetServiceListDefaultCall) Return ¶ added in v0.2.1
func (c *CaseSetServiceListDefaultCall) Return(arg0 []domain.CaseSet, arg1 error) *CaseSetServiceListDefaultCall
Return rewrite *gomock.Call.Return
type CaseSetServiceSaveCall ¶ added in v0.2.1
CaseSetServiceSaveCall wrap *gomock.Call
func (*CaseSetServiceSaveCall) Do ¶ added in v0.2.1
func (c *CaseSetServiceSaveCall) Do(f func(context.Context, domain.CaseSet) (int64, error)) *CaseSetServiceSaveCall
Do rewrite *gomock.Call.Do
func (*CaseSetServiceSaveCall) DoAndReturn ¶ added in v0.2.1
func (c *CaseSetServiceSaveCall) DoAndReturn(f func(context.Context, domain.CaseSet) (int64, error)) *CaseSetServiceSaveCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*CaseSetServiceSaveCall) Return ¶ added in v0.2.1
func (c *CaseSetServiceSaveCall) Return(arg0 int64, arg1 error) *CaseSetServiceSaveCall
Return rewrite *gomock.Call.Return
type CaseSetServiceUpdateCasesCall ¶ added in v0.2.1
CaseSetServiceUpdateCasesCall wrap *gomock.Call
func (*CaseSetServiceUpdateCasesCall) Do ¶ added in v0.2.1
func (c *CaseSetServiceUpdateCasesCall) Do(f func(context.Context, domain.CaseSet) error) *CaseSetServiceUpdateCasesCall
Do rewrite *gomock.Call.Do
func (*CaseSetServiceUpdateCasesCall) DoAndReturn ¶ added in v0.2.1
func (c *CaseSetServiceUpdateCasesCall) DoAndReturn(f func(context.Context, domain.CaseSet) error) *CaseSetServiceUpdateCasesCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*CaseSetServiceUpdateCasesCall) Return ¶ added in v0.2.1
func (c *CaseSetServiceUpdateCasesCall) Return(arg0 error) *CaseSetServiceUpdateCasesCall
Return rewrite *gomock.Call.Return
type ExamineServiceExamineCall ¶ added in v0.3.0
ExamineServiceExamineCall wrap *gomock.Call
func (*ExamineServiceExamineCall) Do ¶ added in v0.3.0
func (c *ExamineServiceExamineCall) Do(f func(context.Context, int64, int64, string) (domain.ExamineCaseResult, error)) *ExamineServiceExamineCall
Do rewrite *gomock.Call.Do
func (*ExamineServiceExamineCall) DoAndReturn ¶ added in v0.3.0
func (c *ExamineServiceExamineCall) DoAndReturn(f func(context.Context, int64, int64, string) (domain.ExamineCaseResult, error)) *ExamineServiceExamineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ExamineServiceExamineCall) Return ¶ added in v0.3.0
func (c *ExamineServiceExamineCall) Return(arg0 domain.ExamineCaseResult, arg1 error) *ExamineServiceExamineCall
Return rewrite *gomock.Call.Return
type ExamineServiceGetResultCall ¶ added in v0.3.0
ExamineServiceGetResultCall wrap *gomock.Call
func (*ExamineServiceGetResultCall) Do ¶ added in v0.3.0
func (c *ExamineServiceGetResultCall) Do(f func(context.Context, int64, int64) (domain.CaseResult, error)) *ExamineServiceGetResultCall
Do rewrite *gomock.Call.Do
func (*ExamineServiceGetResultCall) DoAndReturn ¶ added in v0.3.0
func (c *ExamineServiceGetResultCall) DoAndReturn(f func(context.Context, int64, int64) (domain.CaseResult, error)) *ExamineServiceGetResultCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ExamineServiceGetResultCall) Return ¶ added in v0.3.0
func (c *ExamineServiceGetResultCall) Return(arg0 domain.CaseResult, arg1 error) *ExamineServiceGetResultCall
Return rewrite *gomock.Call.Return
type ExamineServiceGetResultsCall ¶ added in v0.3.0
ExamineServiceGetResultsCall wrap *gomock.Call
func (*ExamineServiceGetResultsCall) Do ¶ added in v0.3.0
func (c *ExamineServiceGetResultsCall) Do(f func(context.Context, int64, []int64) (map[int64]domain.ExamineCaseResult, error)) *ExamineServiceGetResultsCall
Do rewrite *gomock.Call.Do
func (*ExamineServiceGetResultsCall) DoAndReturn ¶ added in v0.3.0
func (c *ExamineServiceGetResultsCall) DoAndReturn(f func(context.Context, int64, []int64) (map[int64]domain.ExamineCaseResult, error)) *ExamineServiceGetResultsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ExamineServiceGetResultsCall) Return ¶ added in v0.3.0
func (c *ExamineServiceGetResultsCall) Return(arg0 map[int64]domain.ExamineCaseResult, arg1 error) *ExamineServiceGetResultsCall
Return rewrite *gomock.Call.Return
type MockCaseSetService ¶ added in v0.2.1
type MockCaseSetService struct {
// contains filtered or unexported fields
}
MockCaseSetService is a mock of CaseSetService interface.
func NewMockCaseSetService ¶ added in v0.2.1
func NewMockCaseSetService(ctrl *gomock.Controller) *MockCaseSetService
NewMockCaseSetService creates a new mock instance.
func (*MockCaseSetService) EXPECT ¶ added in v0.2.1
func (m *MockCaseSetService) EXPECT() *MockCaseSetServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockCaseSetService) GetByBiz ¶ added in v0.2.1
func (m *MockCaseSetService) GetByBiz(ctx context.Context, biz string, bizId int64) (domain.CaseSet, error)
GetByBiz mocks base method.
func (*MockCaseSetService) GetByIdsWithCases ¶ added in v0.3.0
func (m *MockCaseSetService) GetByIdsWithCases(ctx context.Context, ids []int64) ([]domain.CaseSet, error)
GetByIdsWithCases mocks base method.
func (*MockCaseSetService) GetCandidates ¶ added in v0.2.1
func (m *MockCaseSetService) GetCandidates(ctx context.Context, id int64, offset, limit int) ([]domain.Case, int64, error)
GetCandidates mocks base method.
func (*MockCaseSetService) List ¶ added in v0.2.1
func (m *MockCaseSetService) List(ctx context.Context, offset, limit int) ([]domain.CaseSet, int64, error)
List mocks base method.
func (*MockCaseSetService) ListByBiz ¶ added in v0.2.1
func (m *MockCaseSetService) ListByBiz(ctx context.Context, offset, limit int, biz string) ([]domain.CaseSet, error)
ListByBiz mocks base method.
func (*MockCaseSetService) ListDefault ¶ added in v0.2.1
func (m *MockCaseSetService) ListDefault(ctx context.Context, offset, limit int) ([]domain.CaseSet, error)
ListDefault mocks base method.
func (*MockCaseSetService) UpdateCases ¶ added in v0.2.1
UpdateCases mocks base method.
type MockCaseSetServiceMockRecorder ¶ added in v0.2.1
type MockCaseSetServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockCaseSetServiceMockRecorder is the mock recorder for MockCaseSetService.
func (*MockCaseSetServiceMockRecorder) Detail ¶ added in v0.2.1
func (mr *MockCaseSetServiceMockRecorder) Detail(ctx, id any) *CaseSetServiceDetailCall
Detail indicates an expected call of Detail.
func (*MockCaseSetServiceMockRecorder) GetByBiz ¶ added in v0.2.1
func (mr *MockCaseSetServiceMockRecorder) GetByBiz(ctx, biz, bizId any) *CaseSetServiceGetByBizCall
GetByBiz indicates an expected call of GetByBiz.
func (*MockCaseSetServiceMockRecorder) GetByIds ¶ added in v0.2.1
func (mr *MockCaseSetServiceMockRecorder) GetByIds(ctx, ids any) *CaseSetServiceGetByIdsCall
GetByIds indicates an expected call of GetByIds.
func (*MockCaseSetServiceMockRecorder) GetByIdsWithCases ¶ added in v0.3.0
func (mr *MockCaseSetServiceMockRecorder) GetByIdsWithCases(ctx, ids any) *CaseSetServiceGetByIdsWithCasesCall
GetByIdsWithCases indicates an expected call of GetByIdsWithCases.
func (*MockCaseSetServiceMockRecorder) GetCandidates ¶ added in v0.2.1
func (mr *MockCaseSetServiceMockRecorder) GetCandidates(ctx, id, offset, limit any) *CaseSetServiceGetCandidatesCall
GetCandidates indicates an expected call of GetCandidates.
func (*MockCaseSetServiceMockRecorder) List ¶ added in v0.2.1
func (mr *MockCaseSetServiceMockRecorder) List(ctx, offset, limit any) *CaseSetServiceListCall
List indicates an expected call of List.
func (*MockCaseSetServiceMockRecorder) ListByBiz ¶ added in v0.2.1
func (mr *MockCaseSetServiceMockRecorder) ListByBiz(ctx, offset, limit, biz any) *CaseSetServiceListByBizCall
ListByBiz indicates an expected call of ListByBiz.
func (*MockCaseSetServiceMockRecorder) ListDefault ¶ added in v0.2.1
func (mr *MockCaseSetServiceMockRecorder) ListDefault(ctx, offset, limit any) *CaseSetServiceListDefaultCall
ListDefault indicates an expected call of ListDefault.
func (*MockCaseSetServiceMockRecorder) Save ¶ added in v0.2.1
func (mr *MockCaseSetServiceMockRecorder) Save(ctx, set any) *CaseSetServiceSaveCall
Save indicates an expected call of Save.
func (*MockCaseSetServiceMockRecorder) UpdateCases ¶ added in v0.2.1
func (mr *MockCaseSetServiceMockRecorder) UpdateCases(ctx, set any) *CaseSetServiceUpdateCasesCall
UpdateCases indicates an expected call of UpdateCases.
type MockExamineService ¶ added in v0.3.0
type MockExamineService struct {
// contains filtered or unexported fields
}
MockExamineService is a mock of ExamineService interface.
func NewMockExamineService ¶ added in v0.3.0
func NewMockExamineService(ctrl *gomock.Controller) *MockExamineService
NewMockExamineService creates a new mock instance.
func (*MockExamineService) EXPECT ¶ added in v0.3.0
func (m *MockExamineService) EXPECT() *MockExamineServiceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockExamineService) Examine ¶ added in v0.3.0
func (m *MockExamineService) Examine(ctx context.Context, uid, cid int64, input string) (domain.ExamineCaseResult, error)
Examine mocks base method.
func (*MockExamineService) GetResult ¶ added in v0.3.0
func (m *MockExamineService) GetResult(ctx context.Context, uid, cid int64) (domain.CaseResult, error)
GetResult mocks base method.
func (*MockExamineService) GetResults ¶ added in v0.3.0
func (m *MockExamineService) GetResults(ctx context.Context, uid int64, ids []int64) (map[int64]domain.ExamineCaseResult, error)
GetResults mocks base method.
type MockExamineServiceMockRecorder ¶ added in v0.3.0
type MockExamineServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockExamineServiceMockRecorder is the mock recorder for MockExamineService.
func (*MockExamineServiceMockRecorder) Examine ¶ added in v0.3.0
func (mr *MockExamineServiceMockRecorder) Examine(ctx, uid, cid, input any) *ExamineServiceExamineCall
Examine indicates an expected call of Examine.
func (*MockExamineServiceMockRecorder) GetResult ¶ added in v0.3.0
func (mr *MockExamineServiceMockRecorder) GetResult(ctx, uid, cid any) *ExamineServiceGetResultCall
GetResult indicates an expected call of GetResult.
func (*MockExamineServiceMockRecorder) GetResults ¶ added in v0.3.0
func (mr *MockExamineServiceMockRecorder) GetResults(ctx, uid, ids any) *ExamineServiceGetResultsCall
GetResults indicates an expected call of GetResults.
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) 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.
type MockServiceMockRecorder ¶
type MockServiceMockRecorder struct {
// contains filtered or unexported fields
}
MockServiceMockRecorder is the mock recorder for MockService.
func (*MockServiceMockRecorder) Detail ¶
func (mr *MockServiceMockRecorder) Detail(ctx, caseId any) *ServiceDetailCall
Detail indicates an expected call of Detail.
func (*MockServiceMockRecorder) GetPubByIDs ¶
func (mr *MockServiceMockRecorder) GetPubByIDs(ctx, ids any) *ServiceGetPubByIDsCall
GetPubByIDs indicates an expected call of GetPubByIDs.
func (*MockServiceMockRecorder) List ¶
func (mr *MockServiceMockRecorder) List(ctx, offset, limit any) *ServiceListCall
List indicates an expected call of List.
func (*MockServiceMockRecorder) PubDetail ¶
func (mr *MockServiceMockRecorder) PubDetail(ctx, caseId any) *ServicePubDetailCall
PubDetail indicates an expected call of PubDetail.
func (*MockServiceMockRecorder) PubList ¶
func (mr *MockServiceMockRecorder) PubList(ctx, offset, limit any) *ServicePubListCall
PubList indicates an expected call of PubList.
func (*MockServiceMockRecorder) Publish ¶
func (mr *MockServiceMockRecorder) Publish(ctx, ca any) *ServicePublishCall
Publish indicates an expected call of Publish.
func (*MockServiceMockRecorder) Save ¶
func (mr *MockServiceMockRecorder) Save(ctx, ca any) *ServiceSaveCall
Save indicates an expected call of Save.
type ServiceDetailCall ¶
ServiceDetailCall wrap *gomock.Call
func (*ServiceDetailCall) Do ¶
func (c *ServiceDetailCall) Do(f func(context.Context, int64) (domain.Case, error)) *ServiceDetailCall
Do rewrite *gomock.Call.Do
func (*ServiceDetailCall) DoAndReturn ¶
func (c *ServiceDetailCall) DoAndReturn(f func(context.Context, int64) (domain.Case, error)) *ServiceDetailCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceDetailCall) Return ¶
func (c *ServiceDetailCall) Return(arg0 domain.Case, arg1 error) *ServiceDetailCall
Return rewrite *gomock.Call.Return
type ServiceGetPubByIDsCall ¶
ServiceGetPubByIDsCall wrap *gomock.Call
func (*ServiceGetPubByIDsCall) Do ¶
func (c *ServiceGetPubByIDsCall) Do(f func(context.Context, []int64) ([]domain.Case, error)) *ServiceGetPubByIDsCall
Do rewrite *gomock.Call.Do
func (*ServiceGetPubByIDsCall) DoAndReturn ¶
func (c *ServiceGetPubByIDsCall) DoAndReturn(f func(context.Context, []int64) ([]domain.Case, error)) *ServiceGetPubByIDsCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceGetPubByIDsCall) Return ¶
func (c *ServiceGetPubByIDsCall) Return(arg0 []domain.Case, arg1 error) *ServiceGetPubByIDsCall
Return rewrite *gomock.Call.Return
type ServiceListCall ¶
ServiceListCall wrap *gomock.Call
func (*ServiceListCall) Do ¶
func (c *ServiceListCall) Do(f func(context.Context, int, int) ([]domain.Case, int64, error)) *ServiceListCall
Do rewrite *gomock.Call.Do
func (*ServiceListCall) DoAndReturn ¶
func (c *ServiceListCall) DoAndReturn(f func(context.Context, int, int) ([]domain.Case, int64, error)) *ServiceListCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceListCall) Return ¶
func (c *ServiceListCall) Return(arg0 []domain.Case, arg1 int64, arg2 error) *ServiceListCall
Return rewrite *gomock.Call.Return
type ServicePubDetailCall ¶
ServicePubDetailCall wrap *gomock.Call
func (*ServicePubDetailCall) Do ¶
func (c *ServicePubDetailCall) Do(f func(context.Context, int64) (domain.Case, error)) *ServicePubDetailCall
Do rewrite *gomock.Call.Do
func (*ServicePubDetailCall) DoAndReturn ¶
func (c *ServicePubDetailCall) DoAndReturn(f func(context.Context, int64) (domain.Case, error)) *ServicePubDetailCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServicePubDetailCall) Return ¶
func (c *ServicePubDetailCall) Return(arg0 domain.Case, arg1 error) *ServicePubDetailCall
Return rewrite *gomock.Call.Return
type ServicePubListCall ¶
ServicePubListCall wrap *gomock.Call
func (*ServicePubListCall) Do ¶
func (c *ServicePubListCall) Do(f func(context.Context, int, int) ([]domain.Case, error)) *ServicePubListCall
Do rewrite *gomock.Call.Do
func (*ServicePubListCall) DoAndReturn ¶
func (c *ServicePubListCall) DoAndReturn(f func(context.Context, int, int) ([]domain.Case, error)) *ServicePubListCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServicePubListCall) Return ¶
func (c *ServicePubListCall) Return(arg0 []domain.Case, arg1 error) *ServicePubListCall
Return rewrite *gomock.Call.Return
type ServicePublishCall ¶
ServicePublishCall wrap *gomock.Call
func (*ServicePublishCall) Do ¶
func (c *ServicePublishCall) Do(f func(context.Context, domain.Case) (int64, error)) *ServicePublishCall
Do rewrite *gomock.Call.Do
func (*ServicePublishCall) DoAndReturn ¶
func (c *ServicePublishCall) DoAndReturn(f func(context.Context, domain.Case) (int64, error)) *ServicePublishCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServicePublishCall) Return ¶
func (c *ServicePublishCall) Return(arg0 int64, arg1 error) *ServicePublishCall
Return rewrite *gomock.Call.Return
type ServiceSaveCall ¶
ServiceSaveCall wrap *gomock.Call
func (*ServiceSaveCall) Do ¶
func (c *ServiceSaveCall) Do(f func(context.Context, domain.Case) (int64, error)) *ServiceSaveCall
Do rewrite *gomock.Call.Do
func (*ServiceSaveCall) DoAndReturn ¶
func (c *ServiceSaveCall) DoAndReturn(f func(context.Context, domain.Case) (int64, error)) *ServiceSaveCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*ServiceSaveCall) Return ¶
func (c *ServiceSaveCall) Return(arg0 int64, arg1 error) *ServiceSaveCall
Return rewrite *gomock.Call.Return