quemocks

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

Package quemocks is a generated GoMock package.

Code generated by MockGen. DO NOT EDIT. Source: ./question.go

Generated by this command:

mockgen -source=./question.go -destination=../../mocks/question.mock.go -package=quemocks -typed=true Service

Package quemocks is a generated GoMock package.

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

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

type MockExamineServiceCorrectCall struct {
	*gomock.Call
}

MockExamineServiceCorrectCall wraps *gomock.Call.

func (*MockExamineServiceCorrectCall) Do added in v0.3.0

Do rewrite *gomock.Call.Do for Correct.

func (*MockExamineServiceCorrectCall) DoAndReturn added in v0.3.0

DoAndReturn rewrite *gomock.Call.DoAndReturn for Correct.

func (*MockExamineServiceCorrectCall) Return added in v0.3.0

Return rewrite *gomock.Call.Return for Correct.

type MockExamineServiceExamineCall added in v0.2.1

type MockExamineServiceExamineCall struct {
	*gomock.Call
}

MockExamineServiceExamineCall wrap *gomock.Call

func (*MockExamineServiceExamineCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockExamineServiceExamineCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExamineServiceExamineCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type MockExamineServiceGetResultsCall added in v0.2.1

type MockExamineServiceGetResultsCall struct {
	*gomock.Call
}

MockExamineServiceGetResultsCall wrap *gomock.Call

func (*MockExamineServiceGetResultsCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockExamineServiceGetResultsCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExamineServiceGetResultsCall) Return added in v0.2.1

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

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

type MockExamineServiceQuestionResultCall struct {
	*gomock.Call
}

MockExamineServiceQuestionResultCall wrap *gomock.Call

func (*MockExamineServiceQuestionResultCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockExamineServiceQuestionResultCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockExamineServiceQuestionResultCall) Return added in v0.2.1

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

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

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, error)

ListDefault mocks base method.

func (*MockQuestionSetService) Save added in v0.1.7

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

type MockQuestionSetServiceDetailByBizCall struct {
	*gomock.Call
}

MockQuestionSetServiceDetailByBizCall wrap *gomock.Call

func (*MockQuestionSetServiceDetailByBizCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockQuestionSetServiceDetailByBizCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockQuestionSetServiceDetailByBizCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type MockQuestionSetServiceDetailCall added in v0.2.1

type MockQuestionSetServiceDetailCall struct {
	*gomock.Call
}

MockQuestionSetServiceDetailCall wrap *gomock.Call

func (*MockQuestionSetServiceDetailCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockQuestionSetServiceDetailCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockQuestionSetServiceDetailCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type MockQuestionSetServiceGetByIDsWithQuestionCall added in v0.2.1

type MockQuestionSetServiceGetByIDsWithQuestionCall struct {
	*gomock.Call
}

MockQuestionSetServiceGetByIDsWithQuestionCall wrap *gomock.Call

func (*MockQuestionSetServiceGetByIDsWithQuestionCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockQuestionSetServiceGetByIDsWithQuestionCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockQuestionSetServiceGetByIDsWithQuestionCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type MockQuestionSetServiceGetByIdsCall added in v0.2.1

type MockQuestionSetServiceGetByIdsCall struct {
	*gomock.Call
}

MockQuestionSetServiceGetByIdsCall wrap *gomock.Call

func (*MockQuestionSetServiceGetByIdsCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockQuestionSetServiceGetByIdsCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockQuestionSetServiceGetByIdsCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type MockQuestionSetServiceGetCandidatesCall added in v0.2.1

type MockQuestionSetServiceGetCandidatesCall struct {
	*gomock.Call
}

MockQuestionSetServiceGetCandidatesCall wrap *gomock.Call

func (*MockQuestionSetServiceGetCandidatesCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockQuestionSetServiceGetCandidatesCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockQuestionSetServiceGetCandidatesCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type MockQuestionSetServiceListCall added in v0.2.1

type MockQuestionSetServiceListCall struct {
	*gomock.Call
}

MockQuestionSetServiceListCall wrap *gomock.Call

func (*MockQuestionSetServiceListCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockQuestionSetServiceListCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockQuestionSetServiceListCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type MockQuestionSetServiceListDefaultCall added in v0.2.1

type MockQuestionSetServiceListDefaultCall struct {
	*gomock.Call
}

MockQuestionSetServiceListDefaultCall wrap *gomock.Call

func (*MockQuestionSetServiceListDefaultCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockQuestionSetServiceListDefaultCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockQuestionSetServiceListDefaultCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

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

Detail indicates an expected call of Detail.

func (*MockQuestionSetServiceMockRecorder) DetailByBiz added in v0.1.8

DetailByBiz indicates an expected call of DetailByBiz.

func (*MockQuestionSetServiceMockRecorder) GetByIDsWithQuestion added in v0.2.1

GetByIDsWithQuestion indicates an expected call of GetByIDsWithQuestion.

func (*MockQuestionSetServiceMockRecorder) GetByIds added in v0.1.7

GetByIds indicates an expected call of GetByIds.

func (*MockQuestionSetServiceMockRecorder) GetCandidates added in v0.2.1

func (mr *MockQuestionSetServiceMockRecorder) GetCandidates(ctx, id, offset, limit any) *MockQuestionSetServiceGetCandidatesCall

GetCandidates indicates an expected call of GetCandidates.

func (*MockQuestionSetServiceMockRecorder) List added in v0.1.7

List indicates an expected call of List.

func (*MockQuestionSetServiceMockRecorder) ListDefault added in v0.1.8

ListDefault indicates an expected call of ListDefault.

func (*MockQuestionSetServiceMockRecorder) Save added in v0.1.7

Save indicates an expected call of Save.

func (*MockQuestionSetServiceMockRecorder) UpdateQuestions added in v0.1.7

UpdateQuestions indicates an expected call of UpdateQuestions.

type MockQuestionSetServiceSaveCall added in v0.2.1

type MockQuestionSetServiceSaveCall struct {
	*gomock.Call
}

MockQuestionSetServiceSaveCall wrap *gomock.Call

func (*MockQuestionSetServiceSaveCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockQuestionSetServiceSaveCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockQuestionSetServiceSaveCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

type MockQuestionSetServiceUpdateQuestionsCall added in v0.2.1

type MockQuestionSetServiceUpdateQuestionsCall struct {
	*gomock.Call
}

MockQuestionSetServiceUpdateQuestionsCall wrap *gomock.Call

func (*MockQuestionSetServiceUpdateQuestionsCall) Do added in v0.2.1

Do rewrite *gomock.Call.Do

func (*MockQuestionSetServiceUpdateQuestionsCall) DoAndReturn added in v0.2.1

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockQuestionSetServiceUpdateQuestionsCall) Return added in v0.2.1

Return rewrite *gomock.Call.Return

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

func (m *MockService) Detail(ctx context.Context, qid int64) (domain.Question, 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.Question, error)

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

func (m *MockService) PubDetail(ctx context.Context, qid int64) (domain.Question, error)

PubDetail mocks base method.

func (*MockService) PubList

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

PubList mocks base method.

func (*MockService) Publish

func (m *MockService) Publish(ctx context.Context, que *domain.Question) (int64, error)

Publish mocks base method.

func (*MockService) Save

func (m *MockService) Save(ctx context.Context, question *domain.Question) (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) Delete added in v0.1.0

func (mr *MockServiceMockRecorder) Delete(ctx, qid any) *ServiceDeleteCall

Delete indicates an expected call of Delete.

func (*MockServiceMockRecorder) Detail

func (mr *MockServiceMockRecorder) Detail(ctx, qid 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, qid 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, que any) *ServicePublishCall

Publish indicates an expected call of Publish.

func (*MockServiceMockRecorder) Save

func (mr *MockServiceMockRecorder) Save(ctx, question any) *ServiceSaveCall

Save indicates an expected call of Save.

type ServiceDeleteCall added in v0.1.0

type ServiceDeleteCall struct {
	*gomock.Call
}

ServiceDeleteCall wrap *gomock.Call

func (*ServiceDeleteCall) Do added in v0.1.0

Do rewrite *gomock.Call.Do

func (*ServiceDeleteCall) DoAndReturn added in v0.1.0

func (c *ServiceDeleteCall) DoAndReturn(f func(context.Context, int64) error) *ServiceDeleteCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceDeleteCall) Return added in v0.1.0

func (c *ServiceDeleteCall) Return(arg0 error) *ServiceDeleteCall

Return rewrite *gomock.Call.Return

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.Question, 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.Question, int64, error)) *ServiceListCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServiceListCall) Return

func (c *ServiceListCall) Return(arg0 []domain.Question, 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

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*ServicePubListCall) Return

func (c *ServicePubListCall) Return(arg0 []domain.Question, 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.Question) (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