mocks

package
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockService

type MockService struct {
	mock.Mock
}

MockService is an autogenerated mock type for the Service type

func NewMockService

func NewMockService(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockService

NewMockService creates a new instance of MockService. 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 (*MockService) CreateWorkflow

func (_m *MockService) CreateWorkflow(ctx context.Context, namespaceName string, wf *v1alpha1.Workflow) (*v1alpha1.Workflow, error)

CreateWorkflow provides a mock function with given fields: ctx, namespaceName, wf

func (*MockService) DeleteWorkflow

func (_m *MockService) DeleteWorkflow(ctx context.Context, namespaceName string, workflowName string) error

DeleteWorkflow provides a mock function with given fields: ctx, namespaceName, workflowName

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) GetWorkflow

func (_m *MockService) GetWorkflow(ctx context.Context, namespaceName string, workflowName string) (*v1alpha1.Workflow, error)

GetWorkflow provides a mock function with given fields: ctx, namespaceName, workflowName

func (*MockService) GetWorkflowSchema

func (_m *MockService) GetWorkflowSchema(ctx context.Context, namespaceName string, workflowName string) (map[string]interface{}, error)

GetWorkflowSchema provides a mock function with given fields: ctx, namespaceName, workflowName

func (*MockService) ListWorkflows

func (_m *MockService) ListWorkflows(ctx context.Context, namespaceName string, opts services.ListOptions) (*services.ListResult[v1alpha1.Workflow], error)

ListWorkflows provides a mock function with given fields: ctx, namespaceName, opts

func (*MockService) UpdateWorkflow

func (_m *MockService) UpdateWorkflow(ctx context.Context, namespaceName string, wf *v1alpha1.Workflow) (*v1alpha1.Workflow, error)

UpdateWorkflow provides a mock function with given fields: ctx, namespaceName, wf

type MockService_CreateWorkflow_Call

type MockService_CreateWorkflow_Call struct {
	*mock.Call
}

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

func (*MockService_CreateWorkflow_Call) Return

func (*MockService_CreateWorkflow_Call) Run

func (*MockService_CreateWorkflow_Call) RunAndReturn

type MockService_DeleteWorkflow_Call

type MockService_DeleteWorkflow_Call struct {
	*mock.Call
}

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

func (*MockService_DeleteWorkflow_Call) Return

func (*MockService_DeleteWorkflow_Call) Run

func (_c *MockService_DeleteWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, workflowName string)) *MockService_DeleteWorkflow_Call

func (*MockService_DeleteWorkflow_Call) RunAndReturn

type MockService_Expecter

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

func (*MockService_Expecter) CreateWorkflow

func (_e *MockService_Expecter) CreateWorkflow(ctx interface{}, namespaceName interface{}, wf interface{}) *MockService_CreateWorkflow_Call

CreateWorkflow is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • wf *v1alpha1.Workflow

func (*MockService_Expecter) DeleteWorkflow

func (_e *MockService_Expecter) DeleteWorkflow(ctx interface{}, namespaceName interface{}, workflowName interface{}) *MockService_DeleteWorkflow_Call

DeleteWorkflow is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • workflowName string

func (*MockService_Expecter) GetWorkflow

func (_e *MockService_Expecter) GetWorkflow(ctx interface{}, namespaceName interface{}, workflowName interface{}) *MockService_GetWorkflow_Call

GetWorkflow is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • workflowName string

func (*MockService_Expecter) GetWorkflowSchema

func (_e *MockService_Expecter) GetWorkflowSchema(ctx interface{}, namespaceName interface{}, workflowName interface{}) *MockService_GetWorkflowSchema_Call

GetWorkflowSchema is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • workflowName string

func (*MockService_Expecter) ListWorkflows

func (_e *MockService_Expecter) ListWorkflows(ctx interface{}, namespaceName interface{}, opts interface{}) *MockService_ListWorkflows_Call

ListWorkflows is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • opts services.ListOptions

func (*MockService_Expecter) UpdateWorkflow

func (_e *MockService_Expecter) UpdateWorkflow(ctx interface{}, namespaceName interface{}, wf interface{}) *MockService_UpdateWorkflow_Call

UpdateWorkflow is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • wf *v1alpha1.Workflow

type MockService_GetWorkflowSchema_Call

type MockService_GetWorkflowSchema_Call struct {
	*mock.Call
}

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

func (*MockService_GetWorkflowSchema_Call) Return

func (*MockService_GetWorkflowSchema_Call) Run

func (_c *MockService_GetWorkflowSchema_Call) Run(run func(ctx context.Context, namespaceName string, workflowName string)) *MockService_GetWorkflowSchema_Call

func (*MockService_GetWorkflowSchema_Call) RunAndReturn

type MockService_GetWorkflow_Call

type MockService_GetWorkflow_Call struct {
	*mock.Call
}

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

func (*MockService_GetWorkflow_Call) Return

func (*MockService_GetWorkflow_Call) Run

func (_c *MockService_GetWorkflow_Call) Run(run func(ctx context.Context, namespaceName string, workflowName string)) *MockService_GetWorkflow_Call

func (*MockService_GetWorkflow_Call) RunAndReturn

type MockService_ListWorkflows_Call

type MockService_ListWorkflows_Call struct {
	*mock.Call
}

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

func (*MockService_ListWorkflows_Call) Return

func (*MockService_ListWorkflows_Call) Run

type MockService_UpdateWorkflow_Call

type MockService_UpdateWorkflow_Call struct {
	*mock.Call
}

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

func (*MockService_UpdateWorkflow_Call) Return

func (*MockService_UpdateWorkflow_Call) Run

func (*MockService_UpdateWorkflow_Call) RunAndReturn

Jump to

Keyboard shortcuts

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