mocks

package
v0.65.1 Latest Latest
Warning

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

Go to latest
Published: May 3, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskEventUpdater

type TaskEventUpdater struct {
	mock.Mock
}

TaskEventUpdater is an autogenerated mock type for the TaskEventUpdater type

func NewTaskEventUpdater

func NewTaskEventUpdater(t interface {
	mock.TestingT
	Cleanup(func())
}) *TaskEventUpdater

NewTaskEventUpdater creates a new instance of TaskEventUpdater. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.

func (*TaskEventUpdater) EXPECT

func (*TaskEventUpdater) GetSubtaskEventUpdater

func (_m *TaskEventUpdater) GetSubtaskEventUpdater(subtask string) job.SubtaskEventUpdater

GetSubtaskEventUpdater provides a mock function with given fields: subtask

func (*TaskEventUpdater) SetStatusToCompleted

func (_m *TaskEventUpdater) SetStatusToCompleted(ctx context.Context, results []job.TaskResult)

SetStatusToCompleted provides a mock function with given fields: ctx, results

func (*TaskEventUpdater) SetStatusToDataProcessing

func (_m *TaskEventUpdater) SetStatusToDataProcessing(ctx context.Context)

SetStatusToDataProcessing provides a mock function with given fields: ctx

func (*TaskEventUpdater) SetStatusToDataRetrieve

func (_m *TaskEventUpdater) SetStatusToDataRetrieve(ctx context.Context)

SetStatusToDataRetrieve provides a mock function with given fields: ctx

func (*TaskEventUpdater) SetStatusToDataUpload

func (_m *TaskEventUpdater) SetStatusToDataUpload(ctx context.Context)

SetStatusToDataUpload provides a mock function with given fields: ctx

func (*TaskEventUpdater) SetStatusToFailed

func (_m *TaskEventUpdater) SetStatusToFailed(ctx context.Context, err error)

SetStatusToFailed provides a mock function with given fields: ctx, err

func (*TaskEventUpdater) SetStatusToQueued

func (_m *TaskEventUpdater) SetStatusToQueued(ctx context.Context)

SetStatusToQueued provides a mock function with given fields: ctx

func (*TaskEventUpdater) SetStatusToSkipped

func (_m *TaskEventUpdater) SetStatusToSkipped(ctx context.Context)

SetStatusToSkipped provides a mock function with given fields: ctx

func (*TaskEventUpdater) SetStatusToStarted

func (_m *TaskEventUpdater) SetStatusToStarted(ctx context.Context)

SetStatusToStarted provides a mock function with given fields: ctx

type TaskEventUpdater_Expecter

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

func (*TaskEventUpdater_Expecter) GetSubtaskEventUpdater

func (_e *TaskEventUpdater_Expecter) GetSubtaskEventUpdater(subtask interface{}) *TaskEventUpdater_GetSubtaskEventUpdater_Call

GetSubtaskEventUpdater is a helper method to define mock.On call

  • subtask string

func (*TaskEventUpdater_Expecter) SetStatusToCompleted

func (_e *TaskEventUpdater_Expecter) SetStatusToCompleted(ctx interface{}, results interface{}) *TaskEventUpdater_SetStatusToCompleted_Call

SetStatusToCompleted is a helper method to define mock.On call

  • ctx context.Context
  • results []job.TaskResult

func (*TaskEventUpdater_Expecter) SetStatusToDataProcessing

func (_e *TaskEventUpdater_Expecter) SetStatusToDataProcessing(ctx interface{}) *TaskEventUpdater_SetStatusToDataProcessing_Call

SetStatusToDataProcessing is a helper method to define mock.On call

  • ctx context.Context

func (*TaskEventUpdater_Expecter) SetStatusToDataRetrieve

func (_e *TaskEventUpdater_Expecter) SetStatusToDataRetrieve(ctx interface{}) *TaskEventUpdater_SetStatusToDataRetrieve_Call

SetStatusToDataRetrieve is a helper method to define mock.On call

  • ctx context.Context

func (*TaskEventUpdater_Expecter) SetStatusToDataUpload

func (_e *TaskEventUpdater_Expecter) SetStatusToDataUpload(ctx interface{}) *TaskEventUpdater_SetStatusToDataUpload_Call

SetStatusToDataUpload is a helper method to define mock.On call

  • ctx context.Context

func (*TaskEventUpdater_Expecter) SetStatusToFailed

func (_e *TaskEventUpdater_Expecter) SetStatusToFailed(ctx interface{}, err interface{}) *TaskEventUpdater_SetStatusToFailed_Call

SetStatusToFailed is a helper method to define mock.On call

  • ctx context.Context
  • err error

func (*TaskEventUpdater_Expecter) SetStatusToQueued

func (_e *TaskEventUpdater_Expecter) SetStatusToQueued(ctx interface{}) *TaskEventUpdater_SetStatusToQueued_Call

SetStatusToQueued is a helper method to define mock.On call

  • ctx context.Context

func (*TaskEventUpdater_Expecter) SetStatusToSkipped

func (_e *TaskEventUpdater_Expecter) SetStatusToSkipped(ctx interface{}) *TaskEventUpdater_SetStatusToSkipped_Call

SetStatusToSkipped is a helper method to define mock.On call

  • ctx context.Context

func (*TaskEventUpdater_Expecter) SetStatusToStarted

func (_e *TaskEventUpdater_Expecter) SetStatusToStarted(ctx interface{}) *TaskEventUpdater_SetStatusToStarted_Call

SetStatusToStarted is a helper method to define mock.On call

  • ctx context.Context

type TaskEventUpdater_GetSubtaskEventUpdater_Call

type TaskEventUpdater_GetSubtaskEventUpdater_Call struct {
	*mock.Call
}

TaskEventUpdater_GetSubtaskEventUpdater_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'GetSubtaskEventUpdater'

func (*TaskEventUpdater_GetSubtaskEventUpdater_Call) Return

func (*TaskEventUpdater_GetSubtaskEventUpdater_Call) Run

func (*TaskEventUpdater_GetSubtaskEventUpdater_Call) RunAndReturn

type TaskEventUpdater_SetStatusToCompleted_Call

type TaskEventUpdater_SetStatusToCompleted_Call struct {
	*mock.Call
}

TaskEventUpdater_SetStatusToCompleted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStatusToCompleted'

func (*TaskEventUpdater_SetStatusToCompleted_Call) Return

func (*TaskEventUpdater_SetStatusToCompleted_Call) Run

func (*TaskEventUpdater_SetStatusToCompleted_Call) RunAndReturn

type TaskEventUpdater_SetStatusToDataProcessing_Call

type TaskEventUpdater_SetStatusToDataProcessing_Call struct {
	*mock.Call
}

TaskEventUpdater_SetStatusToDataProcessing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStatusToDataProcessing'

func (*TaskEventUpdater_SetStatusToDataProcessing_Call) Return

func (*TaskEventUpdater_SetStatusToDataProcessing_Call) Run

func (*TaskEventUpdater_SetStatusToDataProcessing_Call) RunAndReturn

type TaskEventUpdater_SetStatusToDataRetrieve_Call

type TaskEventUpdater_SetStatusToDataRetrieve_Call struct {
	*mock.Call
}

TaskEventUpdater_SetStatusToDataRetrieve_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStatusToDataRetrieve'

func (*TaskEventUpdater_SetStatusToDataRetrieve_Call) Return

func (*TaskEventUpdater_SetStatusToDataRetrieve_Call) Run

func (*TaskEventUpdater_SetStatusToDataRetrieve_Call) RunAndReturn

type TaskEventUpdater_SetStatusToDataUpload_Call

type TaskEventUpdater_SetStatusToDataUpload_Call struct {
	*mock.Call
}

TaskEventUpdater_SetStatusToDataUpload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStatusToDataUpload'

func (*TaskEventUpdater_SetStatusToDataUpload_Call) Return

func (*TaskEventUpdater_SetStatusToDataUpload_Call) Run

func (*TaskEventUpdater_SetStatusToDataUpload_Call) RunAndReturn

type TaskEventUpdater_SetStatusToFailed_Call

type TaskEventUpdater_SetStatusToFailed_Call struct {
	*mock.Call
}

TaskEventUpdater_SetStatusToFailed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStatusToFailed'

func (*TaskEventUpdater_SetStatusToFailed_Call) Return

func (*TaskEventUpdater_SetStatusToFailed_Call) Run

func (*TaskEventUpdater_SetStatusToFailed_Call) RunAndReturn

type TaskEventUpdater_SetStatusToQueued_Call

type TaskEventUpdater_SetStatusToQueued_Call struct {
	*mock.Call
}

TaskEventUpdater_SetStatusToQueued_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStatusToQueued'

func (*TaskEventUpdater_SetStatusToQueued_Call) Return

func (*TaskEventUpdater_SetStatusToQueued_Call) Run

func (*TaskEventUpdater_SetStatusToQueued_Call) RunAndReturn

type TaskEventUpdater_SetStatusToSkipped_Call

type TaskEventUpdater_SetStatusToSkipped_Call struct {
	*mock.Call
}

TaskEventUpdater_SetStatusToSkipped_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStatusToSkipped'

func (*TaskEventUpdater_SetStatusToSkipped_Call) Return

func (*TaskEventUpdater_SetStatusToSkipped_Call) Run

func (*TaskEventUpdater_SetStatusToSkipped_Call) RunAndReturn

type TaskEventUpdater_SetStatusToStarted_Call

type TaskEventUpdater_SetStatusToStarted_Call struct {
	*mock.Call
}

TaskEventUpdater_SetStatusToStarted_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetStatusToStarted'

func (*TaskEventUpdater_SetStatusToStarted_Call) Return

func (*TaskEventUpdater_SetStatusToStarted_Call) Run

func (*TaskEventUpdater_SetStatusToStarted_Call) RunAndReturn

Jump to

Keyboard shortcuts

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