quemocks

package
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Feb 13, 2025 License: Apache-2.0 Imports: 4 Imported by: 0

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

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

ListDefault mocks base method.

func (*MockQuestionSetService) PubDetail added in v0.3.3

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

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

func (mr *MockQuestionSetServiceMockRecorder) ListDefault(ctx, offset, limit any) *QuestionSetServiceListDefaultCall

ListDefault indicates an expected call of ListDefault.

func (*MockQuestionSetServiceMockRecorder) PubDetail added in v0.3.3

PubDetail indicates an expected call of PubDetail.

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 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) (int64, []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 MockServiceDeleteCall added in v0.3.3

type MockServiceDeleteCall struct {
	*gomock.Call
}

MockServiceDeleteCall wrap *gomock.Call

func (*MockServiceDeleteCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*MockServiceDeleteCall) DoAndReturn added in v0.3.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceDeleteCall) Return added in v0.3.3

Return rewrite *gomock.Call.Return

type MockServiceDetailCall added in v0.3.3

type MockServiceDetailCall struct {
	*gomock.Call
}

MockServiceDetailCall wrap *gomock.Call

func (*MockServiceDetailCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*MockServiceDetailCall) DoAndReturn added in v0.3.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceDetailCall) Return added in v0.3.3

Return rewrite *gomock.Call.Return

type MockServiceGetPubByIDsCall added in v0.3.3

type MockServiceGetPubByIDsCall struct {
	*gomock.Call
}

MockServiceGetPubByIDsCall wrap *gomock.Call

func (*MockServiceGetPubByIDsCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*MockServiceGetPubByIDsCall) DoAndReturn added in v0.3.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceGetPubByIDsCall) Return added in v0.3.3

Return rewrite *gomock.Call.Return

type MockServiceListCall added in v0.3.3

type MockServiceListCall struct {
	*gomock.Call
}

MockServiceListCall wrap *gomock.Call

func (*MockServiceListCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*MockServiceListCall) DoAndReturn added in v0.3.3

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

type MockServicePubDetailCall struct {
	*gomock.Call
}

MockServicePubDetailCall wrap *gomock.Call

func (*MockServicePubDetailCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*MockServicePubDetailCall) DoAndReturn added in v0.3.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServicePubDetailCall) Return added in v0.3.3

Return rewrite *gomock.Call.Return

type MockServicePubListCall added in v0.3.3

type MockServicePubListCall struct {
	*gomock.Call
}

MockServicePubListCall wrap *gomock.Call

func (*MockServicePubListCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*MockServicePubListCall) DoAndReturn added in v0.3.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServicePubListCall) Return added in v0.3.3

Return rewrite *gomock.Call.Return

type MockServicePublishCall added in v0.3.3

type MockServicePublishCall struct {
	*gomock.Call
}

MockServicePublishCall wrap *gomock.Call

func (*MockServicePublishCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*MockServicePublishCall) DoAndReturn added in v0.3.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServicePublishCall) Return added in v0.3.3

Return rewrite *gomock.Call.Return

type MockServiceSaveCall added in v0.3.3

type MockServiceSaveCall struct {
	*gomock.Call
}

MockServiceSaveCall wrap *gomock.Call

func (*MockServiceSaveCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*MockServiceSaveCall) DoAndReturn added in v0.3.3

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

type QuestionSetServiceDetailByBizCall struct {
	*gomock.Call
}

QuestionSetServiceDetailByBizCall wrap *gomock.Call

func (*QuestionSetServiceDetailByBizCall) Do added in v0.1.8

Do rewrite *gomock.Call.Do

func (*QuestionSetServiceDetailByBizCall) DoAndReturn added in v0.1.8

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuestionSetServiceDetailByBizCall) Return added in v0.1.8

Return rewrite *gomock.Call.Return

type QuestionSetServiceDetailCall added in v0.1.7

type QuestionSetServiceDetailCall struct {
	*gomock.Call
}

QuestionSetServiceDetailCall wrap *gomock.Call

func (*QuestionSetServiceDetailCall) Do added in v0.1.7

Do rewrite *gomock.Call.Do

func (*QuestionSetServiceDetailCall) DoAndReturn added in v0.1.7

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuestionSetServiceDetailCall) Return added in v0.1.7

Return rewrite *gomock.Call.Return

type QuestionSetServiceGetByIDsWithQuestionCall added in v0.3.3

type QuestionSetServiceGetByIDsWithQuestionCall struct {
	*gomock.Call
}

QuestionSetServiceGetByIDsWithQuestionCall wrap *gomock.Call

func (*QuestionSetServiceGetByIDsWithQuestionCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*QuestionSetServiceGetByIDsWithQuestionCall) DoAndReturn added in v0.3.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuestionSetServiceGetByIDsWithQuestionCall) Return added in v0.3.3

Return rewrite *gomock.Call.Return

type QuestionSetServiceGetByIdsCall added in v0.1.7

type QuestionSetServiceGetByIdsCall struct {
	*gomock.Call
}

QuestionSetServiceGetByIdsCall wrap *gomock.Call

func (*QuestionSetServiceGetByIdsCall) Do added in v0.1.7

Do rewrite *gomock.Call.Do

func (*QuestionSetServiceGetByIdsCall) DoAndReturn added in v0.1.7

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuestionSetServiceGetByIdsCall) Return added in v0.1.7

Return rewrite *gomock.Call.Return

type QuestionSetServiceGetCandidatesCall added in v0.3.3

type QuestionSetServiceGetCandidatesCall struct {
	*gomock.Call
}

QuestionSetServiceGetCandidatesCall wrap *gomock.Call

func (*QuestionSetServiceGetCandidatesCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*QuestionSetServiceGetCandidatesCall) DoAndReturn added in v0.3.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuestionSetServiceGetCandidatesCall) Return added in v0.3.3

Return rewrite *gomock.Call.Return

type QuestionSetServiceListCall added in v0.1.7

type QuestionSetServiceListCall struct {
	*gomock.Call
}

QuestionSetServiceListCall wrap *gomock.Call

func (*QuestionSetServiceListCall) Do added in v0.1.7

Do rewrite *gomock.Call.Do

func (*QuestionSetServiceListCall) DoAndReturn added in v0.1.7

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuestionSetServiceListCall) Return added in v0.1.7

Return rewrite *gomock.Call.Return

type QuestionSetServiceListDefaultCall added in v0.1.8

type QuestionSetServiceListDefaultCall struct {
	*gomock.Call
}

QuestionSetServiceListDefaultCall wrap *gomock.Call

func (*QuestionSetServiceListDefaultCall) Do added in v0.1.8

Do rewrite *gomock.Call.Do

func (*QuestionSetServiceListDefaultCall) DoAndReturn added in v0.1.8

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuestionSetServiceListDefaultCall) Return added in v0.1.8

Return rewrite *gomock.Call.Return

type QuestionSetServicePubDetailCall added in v0.3.3

type QuestionSetServicePubDetailCall struct {
	*gomock.Call
}

QuestionSetServicePubDetailCall wrap *gomock.Call

func (*QuestionSetServicePubDetailCall) Do added in v0.3.3

Do rewrite *gomock.Call.Do

func (*QuestionSetServicePubDetailCall) DoAndReturn added in v0.3.3

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuestionSetServicePubDetailCall) Return added in v0.3.3

Return rewrite *gomock.Call.Return

type QuestionSetServiceSaveCall added in v0.1.7

type QuestionSetServiceSaveCall struct {
	*gomock.Call
}

QuestionSetServiceSaveCall wrap *gomock.Call

func (*QuestionSetServiceSaveCall) Do added in v0.1.7

Do rewrite *gomock.Call.Do

func (*QuestionSetServiceSaveCall) DoAndReturn added in v0.1.7

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuestionSetServiceSaveCall) Return added in v0.1.7

Return rewrite *gomock.Call.Return

type QuestionSetServiceUpdateQuestionsCall added in v0.1.7

type QuestionSetServiceUpdateQuestionsCall struct {
	*gomock.Call
}

QuestionSetServiceUpdateQuestionsCall wrap *gomock.Call

func (*QuestionSetServiceUpdateQuestionsCall) Do added in v0.1.7

Do rewrite *gomock.Call.Do

func (*QuestionSetServiceUpdateQuestionsCall) DoAndReturn added in v0.1.7

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*QuestionSetServiceUpdateQuestionsCall) Return added in v0.1.7

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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