casemocks

package
v0.3.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

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

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type CaseSetServiceDetailCall added in v0.2.1

type CaseSetServiceDetailCall struct {
	*gomock.Call
}

CaseSetServiceDetailCall wrap *gomock.Call

func (*CaseSetServiceDetailCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*CaseSetServiceDetailCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CaseSetServiceDetailCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type CaseSetServiceGetByBizCall added in v0.2.1

type CaseSetServiceGetByBizCall struct {
	*gomock.Call
}

CaseSetServiceGetByBizCall wrap *gomock.Call

func (*CaseSetServiceGetByBizCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*CaseSetServiceGetByBizCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CaseSetServiceGetByBizCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type CaseSetServiceGetByIdsCall added in v0.2.1

type CaseSetServiceGetByIdsCall struct {
	*gomock.Call
}

CaseSetServiceGetByIdsCall wrap *gomock.Call

func (*CaseSetServiceGetByIdsCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*CaseSetServiceGetByIdsCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CaseSetServiceGetByIdsCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type CaseSetServiceGetByIdsWithCasesCall added in v0.3.0

type CaseSetServiceGetByIdsWithCasesCall struct {
	*gomock.Call
}

CaseSetServiceGetByIdsWithCasesCall wrap *gomock.Call

func (*CaseSetServiceGetByIdsWithCasesCall) Do added in v0.3.0

Do rewrite *gomock.Call.Do

func (*CaseSetServiceGetByIdsWithCasesCall) DoAndReturn added in v0.3.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CaseSetServiceGetByIdsWithCasesCall) Return added in v0.3.0

Return rewrite *gomock.Call.Return

type CaseSetServiceGetCandidatesCall added in v0.2.1

type CaseSetServiceGetCandidatesCall struct {
	*gomock.Call
}

CaseSetServiceGetCandidatesCall wrap *gomock.Call

func (*CaseSetServiceGetCandidatesCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*CaseSetServiceGetCandidatesCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CaseSetServiceGetCandidatesCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type CaseSetServiceListByBizCall added in v0.2.1

type CaseSetServiceListByBizCall struct {
	*gomock.Call
}

CaseSetServiceListByBizCall wrap *gomock.Call

func (*CaseSetServiceListByBizCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*CaseSetServiceListByBizCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CaseSetServiceListByBizCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type CaseSetServiceListCall added in v0.2.1

type CaseSetServiceListCall struct {
	*gomock.Call
}

CaseSetServiceListCall wrap *gomock.Call

func (*CaseSetServiceListCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*CaseSetServiceListCall) DoAndReturn added in v0.2.1

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

type CaseSetServiceListDefaultCall struct {
	*gomock.Call
}

CaseSetServiceListDefaultCall wrap *gomock.Call

func (*CaseSetServiceListDefaultCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*CaseSetServiceListDefaultCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CaseSetServiceListDefaultCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type CaseSetServiceSaveCall added in v0.2.1

type CaseSetServiceSaveCall struct {
	*gomock.Call
}

CaseSetServiceSaveCall wrap *gomock.Call

func (*CaseSetServiceSaveCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*CaseSetServiceSaveCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CaseSetServiceSaveCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type CaseSetServiceUpdateCasesCall added in v0.2.1

type CaseSetServiceUpdateCasesCall struct {
	*gomock.Call
}

CaseSetServiceUpdateCasesCall wrap *gomock.Call

func (*CaseSetServiceUpdateCasesCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*CaseSetServiceUpdateCasesCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*CaseSetServiceUpdateCasesCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type ExamineServiceExamineCall added in v0.3.0

type ExamineServiceExamineCall struct {
	*gomock.Call
}

ExamineServiceExamineCall wrap *gomock.Call

func (*ExamineServiceExamineCall) Do added in v0.3.0

Do rewrite *gomock.Call.Do

func (*ExamineServiceExamineCall) DoAndReturn added in v0.3.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ExamineServiceExamineCall) Return added in v0.3.0

Return rewrite *gomock.Call.Return

type ExamineServiceGetResultCall added in v0.3.0

type ExamineServiceGetResultCall struct {
	*gomock.Call
}

ExamineServiceGetResultCall wrap *gomock.Call

func (*ExamineServiceGetResultCall) Do added in v0.3.0

Do rewrite *gomock.Call.Do

func (*ExamineServiceGetResultCall) DoAndReturn added in v0.3.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ExamineServiceGetResultCall) Return added in v0.3.0

Return rewrite *gomock.Call.Return

type ExamineServiceGetResultsCall added in v0.3.0

type ExamineServiceGetResultsCall struct {
	*gomock.Call
}

ExamineServiceGetResultsCall wrap *gomock.Call

func (*ExamineServiceGetResultsCall) Do added in v0.3.0

Do rewrite *gomock.Call.Do

func (*ExamineServiceGetResultsCall) DoAndReturn added in v0.3.0

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ExamineServiceGetResultsCall) Return added in v0.3.0

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) Detail added in v0.2.1

func (m *MockCaseSetService) Detail(ctx context.Context, id int64) (domain.CaseSet, error)

Detail mocks base method.

func (*MockCaseSetService) EXPECT added in v0.2.1

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) GetByIds added in v0.2.1

func (m *MockCaseSetService) GetByIds(ctx context.Context, ids []int64) ([]domain.CaseSet, error)

GetByIds 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) Save added in v0.2.1

Save mocks base method.

func (*MockCaseSetService) UpdateCases added in v0.2.1

func (m *MockCaseSetService) UpdateCases(ctx context.Context, set domain.CaseSet) error

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

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

GetByIds indicates an expected call of GetByIds.

func (*MockCaseSetServiceMockRecorder) GetByIdsWithCases added in v0.3.0

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

Save indicates an expected call of Save.

func (*MockCaseSetServiceMockRecorder) UpdateCases added in v0.2.1

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

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) Detail

func (m *MockService) Detail(ctx context.Context, caseId int64) (domain.Case, error)

Detail 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

func (m *MockService) GetPubByIDs(ctx context.Context, ids []int64) ([]domain.Case, error)

GetPubByIDs mocks base method.

func (*MockService) List

func (m *MockService) List(ctx context.Context, offset, limit int) ([]domain.Case, int64, error)

List mocks base method.

func (*MockService) PubDetail

func (m *MockService) PubDetail(ctx context.Context, caseId int64) (domain.Case, error)

PubDetail mocks base method.

func (*MockService) PubList

func (m *MockService) PubList(ctx context.Context, offset, limit int) ([]domain.Case, error)

PubList mocks base method.

func (*MockService) Publish

func (m *MockService) Publish(ctx context.Context, ca domain.Case) (int64, error)

Publish mocks base method.

func (*MockService) Save

func (m *MockService) Save(ctx context.Context, ca domain.Case) (int64, error)

Save 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

type ServiceDetailCall struct {
	*gomock.Call
}

ServiceDetailCall wrap *gomock.Call

func (*ServiceDetailCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceDetailCall) DoAndReturn

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

type ServiceGetPubByIDsCall struct {
	*gomock.Call
}

ServiceGetPubByIDsCall wrap *gomock.Call

func (*ServiceGetPubByIDsCall) Do

Do rewrite *gomock.Call.Do

func (*ServiceGetPubByIDsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceGetPubByIDsCall) Return

Return rewrite *gomock.Call.Return

type ServiceListCall

type ServiceListCall struct {
	*gomock.Call
}

ServiceListCall wrap *gomock.Call

func (*ServiceListCall) Do

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

type ServicePubDetailCall struct {
	*gomock.Call
}

ServicePubDetailCall wrap *gomock.Call

func (*ServicePubDetailCall) Do

Do rewrite *gomock.Call.Do

func (*ServicePubDetailCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServicePubDetailCall) Return

Return rewrite *gomock.Call.Return

type ServicePubListCall

type ServicePubListCall struct {
	*gomock.Call
}

ServicePubListCall wrap *gomock.Call

func (*ServicePubListCall) Do

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

type ServicePublishCall struct {
	*gomock.Call
}

ServicePublishCall wrap *gomock.Call

func (*ServicePublishCall) Do

Do rewrite *gomock.Call.Do

func (*ServicePublishCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServicePublishCall) Return

func (c *ServicePublishCall) Return(arg0 int64, arg1 error) *ServicePublishCall

Return rewrite *gomock.Call.Return

type ServiceSaveCall

type ServiceSaveCall struct {
	*gomock.Call
}

ServiceSaveCall wrap *gomock.Call

func (*ServiceSaveCall) Do

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL