taskmocks

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package taskmocks is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

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

func (m *MockService) AutoRetryTask(ctx context.Context, id int64) error

AutoRetryTask mocks base method.

func (*MockService) CreateTask

func (m *MockService) CreateTask(ctx context.Context, orderId int64, processInstId int, nodeId string) (domain.Task, error)

CreateTask mocks base method.

func (*MockService) Detail

func (m *MockService) Detail(ctx context.Context, id int64) (domain.Task, 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) FindTaskResult

func (m *MockService) FindTaskResult(ctx context.Context, instanceId int, nodeId string) (domain.Task, error)

FindTaskResult mocks base method.

func (*MockService) ListReadyTasks

func (m *MockService) ListReadyTasks(ctx context.Context, limit int64) ([]domain.Task, error)

ListReadyTasks mocks base method.

func (*MockService) ListSuccessTasksByUtime

func (m *MockService) ListSuccessTasksByUtime(ctx context.Context, offset, limit, utime int64) ([]domain.Task, int64, error)

ListSuccessTasksByUtime mocks base method.

func (*MockService) ListTask

func (m *MockService) ListTask(ctx context.Context, offset, limit int64) ([]domain.Task, int64, error)

ListTask mocks base method.

func (*MockService) ListTaskByInstanceId

func (m *MockService) ListTaskByInstanceId(ctx context.Context, offset, limit int64, instanceId int) ([]domain.Task, int64, error)

ListTaskByInstanceId mocks base method.

func (*MockService) ListTaskByStatus

func (m *MockService) ListTaskByStatus(ctx context.Context, offset, limit int64, status uint8) ([]domain.Task, int64, error)

ListTaskByStatus mocks base method.

func (*MockService) ListTaskByStatusAndKind

func (m *MockService) ListTaskByStatusAndKind(ctx context.Context, offset, limit int64, status uint8, kind string) ([]domain.Task, int64, error)

ListTaskByStatusAndKind mocks base method.

func (*MockService) MarkTaskAsAutoPassed

func (m *MockService) MarkTaskAsAutoPassed(ctx context.Context, id int64) error

MarkTaskAsAutoPassed mocks base method.

func (*MockService) RetryTask

func (m *MockService) RetryTask(ctx context.Context, id int64) error

RetryTask mocks base method.

func (*MockService) StartTask

func (m *MockService) StartTask(ctx context.Context, id int64) error

StartTask mocks base method.

func (*MockService) UpdateArgs

func (m *MockService) UpdateArgs(ctx context.Context, id int64, args map[string]any) (int64, error)

UpdateArgs mocks base method.

func (*MockService) UpdateExternalId

func (m *MockService) UpdateExternalId(ctx context.Context, id int64, externalId string) error

UpdateExternalId mocks base method.

func (*MockService) UpdateTaskResult

func (m *MockService) UpdateTaskResult(ctx context.Context, req domain.TaskResult) (int64, error)

UpdateTaskResult mocks base method.

func (*MockService) UpdateTaskStatus

func (m *MockService) UpdateTaskStatus(ctx context.Context, req domain.TaskResult) (int64, error)

UpdateTaskStatus mocks base method.

func (*MockService) UpdateVariables

func (m *MockService) UpdateVariables(ctx context.Context, id int64, variables []domain.Variables) (int64, error)

UpdateVariables mocks base method.

type MockServiceAutoRetryTaskCall

type MockServiceAutoRetryTaskCall struct {
	*gomock.Call
}

MockServiceAutoRetryTaskCall wrap *gomock.Call

func (*MockServiceAutoRetryTaskCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceAutoRetryTaskCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceAutoRetryTaskCall) Return

Return rewrite *gomock.Call.Return

type MockServiceCreateTaskCall

type MockServiceCreateTaskCall struct {
	*gomock.Call
}

MockServiceCreateTaskCall wrap *gomock.Call

func (*MockServiceCreateTaskCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceCreateTaskCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceCreateTaskCall) Return

Return rewrite *gomock.Call.Return

type MockServiceDetailCall

type MockServiceDetailCall struct {
	*gomock.Call
}

MockServiceDetailCall wrap *gomock.Call

func (*MockServiceDetailCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceDetailCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceDetailCall) Return

Return rewrite *gomock.Call.Return

type MockServiceFindTaskResultCall

type MockServiceFindTaskResultCall struct {
	*gomock.Call
}

MockServiceFindTaskResultCall wrap *gomock.Call

func (*MockServiceFindTaskResultCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceFindTaskResultCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceFindTaskResultCall) Return

Return rewrite *gomock.Call.Return

type MockServiceListReadyTasksCall

type MockServiceListReadyTasksCall struct {
	*gomock.Call
}

MockServiceListReadyTasksCall wrap *gomock.Call

func (*MockServiceListReadyTasksCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceListReadyTasksCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListReadyTasksCall) Return

Return rewrite *gomock.Call.Return

type MockServiceListSuccessTasksByUtimeCall

type MockServiceListSuccessTasksByUtimeCall struct {
	*gomock.Call
}

MockServiceListSuccessTasksByUtimeCall wrap *gomock.Call

func (*MockServiceListSuccessTasksByUtimeCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceListSuccessTasksByUtimeCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListSuccessTasksByUtimeCall) Return

Return rewrite *gomock.Call.Return

type MockServiceListTaskByInstanceIdCall

type MockServiceListTaskByInstanceIdCall struct {
	*gomock.Call
}

MockServiceListTaskByInstanceIdCall wrap *gomock.Call

func (*MockServiceListTaskByInstanceIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceListTaskByInstanceIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListTaskByInstanceIdCall) Return

Return rewrite *gomock.Call.Return

type MockServiceListTaskByStatusAndKindCall

type MockServiceListTaskByStatusAndKindCall struct {
	*gomock.Call
}

MockServiceListTaskByStatusAndKindCall wrap *gomock.Call

func (*MockServiceListTaskByStatusAndKindCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceListTaskByStatusAndKindCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListTaskByStatusAndKindCall) Return

Return rewrite *gomock.Call.Return

type MockServiceListTaskByStatusCall

type MockServiceListTaskByStatusCall struct {
	*gomock.Call
}

MockServiceListTaskByStatusCall wrap *gomock.Call

func (*MockServiceListTaskByStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceListTaskByStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListTaskByStatusCall) Return

Return rewrite *gomock.Call.Return

type MockServiceListTaskCall

type MockServiceListTaskCall struct {
	*gomock.Call
}

MockServiceListTaskCall wrap *gomock.Call

func (*MockServiceListTaskCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceListTaskCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceListTaskCall) Return

func (c *MockServiceListTaskCall) Return(arg0 []domain.Task, arg1 int64, arg2 error) *MockServiceListTaskCall

Return rewrite *gomock.Call.Return

type MockServiceMarkTaskAsAutoPassedCall

type MockServiceMarkTaskAsAutoPassedCall struct {
	*gomock.Call
}

MockServiceMarkTaskAsAutoPassedCall wrap *gomock.Call

func (*MockServiceMarkTaskAsAutoPassedCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceMarkTaskAsAutoPassedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceMarkTaskAsAutoPassedCall) Return

Return rewrite *gomock.Call.Return

type MockServiceMockRecorder

type MockServiceMockRecorder struct {
	// contains filtered or unexported fields
}

MockServiceMockRecorder is the mock recorder for MockService.

func (*MockServiceMockRecorder) AutoRetryTask

func (mr *MockServiceMockRecorder) AutoRetryTask(ctx, id any) *MockServiceAutoRetryTaskCall

AutoRetryTask indicates an expected call of AutoRetryTask.

func (*MockServiceMockRecorder) CreateTask

func (mr *MockServiceMockRecorder) CreateTask(ctx, orderId, processInstId, nodeId any) *MockServiceCreateTaskCall

CreateTask indicates an expected call of CreateTask.

func (*MockServiceMockRecorder) Detail

func (mr *MockServiceMockRecorder) Detail(ctx, id any) *MockServiceDetailCall

Detail indicates an expected call of Detail.

func (*MockServiceMockRecorder) FindTaskResult

func (mr *MockServiceMockRecorder) FindTaskResult(ctx, instanceId, nodeId any) *MockServiceFindTaskResultCall

FindTaskResult indicates an expected call of FindTaskResult.

func (*MockServiceMockRecorder) ListReadyTasks

func (mr *MockServiceMockRecorder) ListReadyTasks(ctx, limit any) *MockServiceListReadyTasksCall

ListReadyTasks indicates an expected call of ListReadyTasks.

func (*MockServiceMockRecorder) ListSuccessTasksByUtime

func (mr *MockServiceMockRecorder) ListSuccessTasksByUtime(ctx, offset, limit, utime any) *MockServiceListSuccessTasksByUtimeCall

ListSuccessTasksByUtime indicates an expected call of ListSuccessTasksByUtime.

func (*MockServiceMockRecorder) ListTask

func (mr *MockServiceMockRecorder) ListTask(ctx, offset, limit any) *MockServiceListTaskCall

ListTask indicates an expected call of ListTask.

func (*MockServiceMockRecorder) ListTaskByInstanceId

func (mr *MockServiceMockRecorder) ListTaskByInstanceId(ctx, offset, limit, instanceId any) *MockServiceListTaskByInstanceIdCall

ListTaskByInstanceId indicates an expected call of ListTaskByInstanceId.

func (*MockServiceMockRecorder) ListTaskByStatus

func (mr *MockServiceMockRecorder) ListTaskByStatus(ctx, offset, limit, status any) *MockServiceListTaskByStatusCall

ListTaskByStatus indicates an expected call of ListTaskByStatus.

func (*MockServiceMockRecorder) ListTaskByStatusAndKind

func (mr *MockServiceMockRecorder) ListTaskByStatusAndKind(ctx, offset, limit, status, kind any) *MockServiceListTaskByStatusAndKindCall

ListTaskByStatusAndKind indicates an expected call of ListTaskByStatusAndKind.

func (*MockServiceMockRecorder) MarkTaskAsAutoPassed

func (mr *MockServiceMockRecorder) MarkTaskAsAutoPassed(ctx, id any) *MockServiceMarkTaskAsAutoPassedCall

MarkTaskAsAutoPassed indicates an expected call of MarkTaskAsAutoPassed.

func (*MockServiceMockRecorder) RetryTask

func (mr *MockServiceMockRecorder) RetryTask(ctx, id any) *MockServiceRetryTaskCall

RetryTask indicates an expected call of RetryTask.

func (*MockServiceMockRecorder) StartTask

func (mr *MockServiceMockRecorder) StartTask(ctx, id any) *MockServiceStartTaskCall

StartTask indicates an expected call of StartTask.

func (*MockServiceMockRecorder) UpdateArgs

func (mr *MockServiceMockRecorder) UpdateArgs(ctx, id, args any) *MockServiceUpdateArgsCall

UpdateArgs indicates an expected call of UpdateArgs.

func (*MockServiceMockRecorder) UpdateExternalId

func (mr *MockServiceMockRecorder) UpdateExternalId(ctx, id, externalId any) *MockServiceUpdateExternalIdCall

UpdateExternalId indicates an expected call of UpdateExternalId.

func (*MockServiceMockRecorder) UpdateTaskResult

func (mr *MockServiceMockRecorder) UpdateTaskResult(ctx, req any) *MockServiceUpdateTaskResultCall

UpdateTaskResult indicates an expected call of UpdateTaskResult.

func (*MockServiceMockRecorder) UpdateTaskStatus

func (mr *MockServiceMockRecorder) UpdateTaskStatus(ctx, req any) *MockServiceUpdateTaskStatusCall

UpdateTaskStatus indicates an expected call of UpdateTaskStatus.

func (*MockServiceMockRecorder) UpdateVariables

func (mr *MockServiceMockRecorder) UpdateVariables(ctx, id, variables any) *MockServiceUpdateVariablesCall

UpdateVariables indicates an expected call of UpdateVariables.

type MockServiceRetryTaskCall

type MockServiceRetryTaskCall struct {
	*gomock.Call
}

MockServiceRetryTaskCall wrap *gomock.Call

func (*MockServiceRetryTaskCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceRetryTaskCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceRetryTaskCall) Return

Return rewrite *gomock.Call.Return

type MockServiceStartTaskCall

type MockServiceStartTaskCall struct {
	*gomock.Call
}

MockServiceStartTaskCall wrap *gomock.Call

func (*MockServiceStartTaskCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceStartTaskCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceStartTaskCall) Return

Return rewrite *gomock.Call.Return

type MockServiceUpdateArgsCall

type MockServiceUpdateArgsCall struct {
	*gomock.Call
}

MockServiceUpdateArgsCall wrap *gomock.Call

func (*MockServiceUpdateArgsCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceUpdateArgsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceUpdateArgsCall) Return

Return rewrite *gomock.Call.Return

type MockServiceUpdateExternalIdCall

type MockServiceUpdateExternalIdCall struct {
	*gomock.Call
}

MockServiceUpdateExternalIdCall wrap *gomock.Call

func (*MockServiceUpdateExternalIdCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceUpdateExternalIdCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceUpdateExternalIdCall) Return

Return rewrite *gomock.Call.Return

type MockServiceUpdateTaskResultCall

type MockServiceUpdateTaskResultCall struct {
	*gomock.Call
}

MockServiceUpdateTaskResultCall wrap *gomock.Call

func (*MockServiceUpdateTaskResultCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceUpdateTaskResultCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceUpdateTaskResultCall) Return

Return rewrite *gomock.Call.Return

type MockServiceUpdateTaskStatusCall

type MockServiceUpdateTaskStatusCall struct {
	*gomock.Call
}

MockServiceUpdateTaskStatusCall wrap *gomock.Call

func (*MockServiceUpdateTaskStatusCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceUpdateTaskStatusCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceUpdateTaskStatusCall) Return

Return rewrite *gomock.Call.Return

type MockServiceUpdateVariablesCall

type MockServiceUpdateVariablesCall struct {
	*gomock.Call
}

MockServiceUpdateVariablesCall wrap *gomock.Call

func (*MockServiceUpdateVariablesCall) Do

Do rewrite *gomock.Call.Do

func (*MockServiceUpdateVariablesCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockServiceUpdateVariablesCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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