mocks

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Jul 24, 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) CreateClusterWorkflow

func (_m *MockService) CreateClusterWorkflow(ctx context.Context, cwf *v1alpha1.ClusterWorkflow) (*v1alpha1.ClusterWorkflow, error)

CreateClusterWorkflow provides a mock function with given fields: ctx, cwf

func (*MockService) DeleteClusterWorkflow

func (_m *MockService) DeleteClusterWorkflow(ctx context.Context, clusterWorkflowName string) error

DeleteClusterWorkflow provides a mock function with given fields: ctx, clusterWorkflowName

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) GetClusterWorkflow

func (_m *MockService) GetClusterWorkflow(ctx context.Context, clusterWorkflowName string) (*v1alpha1.ClusterWorkflow, error)

GetClusterWorkflow provides a mock function with given fields: ctx, clusterWorkflowName

func (*MockService) GetClusterWorkflowSchema

func (_m *MockService) GetClusterWorkflowSchema(ctx context.Context, clusterWorkflowName string) (map[string]interface{}, error)

GetClusterWorkflowSchema provides a mock function with given fields: ctx, clusterWorkflowName

func (*MockService) ListClusterWorkflows

ListClusterWorkflows provides a mock function with given fields: ctx, opts

func (*MockService) UpdateClusterWorkflow

func (_m *MockService) UpdateClusterWorkflow(ctx context.Context, cwf *v1alpha1.ClusterWorkflow) (*v1alpha1.ClusterWorkflow, error)

UpdateClusterWorkflow provides a mock function with given fields: ctx, cwf

type MockService_CreateClusterWorkflow_Call

type MockService_CreateClusterWorkflow_Call struct {
	*mock.Call
}

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

func (*MockService_CreateClusterWorkflow_Call) Return

func (*MockService_CreateClusterWorkflow_Call) Run

type MockService_DeleteClusterWorkflow_Call

type MockService_DeleteClusterWorkflow_Call struct {
	*mock.Call
}

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

func (*MockService_DeleteClusterWorkflow_Call) Return

func (*MockService_DeleteClusterWorkflow_Call) Run

func (*MockService_DeleteClusterWorkflow_Call) RunAndReturn

type MockService_Expecter

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

func (*MockService_Expecter) CreateClusterWorkflow

func (_e *MockService_Expecter) CreateClusterWorkflow(ctx interface{}, cwf interface{}) *MockService_CreateClusterWorkflow_Call

CreateClusterWorkflow is a helper method to define mock.On call

  • ctx context.Context
  • cwf *v1alpha1.ClusterWorkflow

func (*MockService_Expecter) DeleteClusterWorkflow

func (_e *MockService_Expecter) DeleteClusterWorkflow(ctx interface{}, clusterWorkflowName interface{}) *MockService_DeleteClusterWorkflow_Call

DeleteClusterWorkflow is a helper method to define mock.On call

  • ctx context.Context
  • clusterWorkflowName string

func (*MockService_Expecter) GetClusterWorkflow

func (_e *MockService_Expecter) GetClusterWorkflow(ctx interface{}, clusterWorkflowName interface{}) *MockService_GetClusterWorkflow_Call

GetClusterWorkflow is a helper method to define mock.On call

  • ctx context.Context
  • clusterWorkflowName string

func (*MockService_Expecter) GetClusterWorkflowSchema

func (_e *MockService_Expecter) GetClusterWorkflowSchema(ctx interface{}, clusterWorkflowName interface{}) *MockService_GetClusterWorkflowSchema_Call

GetClusterWorkflowSchema is a helper method to define mock.On call

  • ctx context.Context
  • clusterWorkflowName string

func (*MockService_Expecter) ListClusterWorkflows

func (_e *MockService_Expecter) ListClusterWorkflows(ctx interface{}, opts interface{}) *MockService_ListClusterWorkflows_Call

ListClusterWorkflows is a helper method to define mock.On call

  • ctx context.Context
  • opts services.ListOptions

func (*MockService_Expecter) UpdateClusterWorkflow

func (_e *MockService_Expecter) UpdateClusterWorkflow(ctx interface{}, cwf interface{}) *MockService_UpdateClusterWorkflow_Call

UpdateClusterWorkflow is a helper method to define mock.On call

  • ctx context.Context
  • cwf *v1alpha1.ClusterWorkflow

type MockService_GetClusterWorkflowSchema_Call

type MockService_GetClusterWorkflowSchema_Call struct {
	*mock.Call
}

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

func (*MockService_GetClusterWorkflowSchema_Call) Return

func (*MockService_GetClusterWorkflowSchema_Call) Run

func (*MockService_GetClusterWorkflowSchema_Call) RunAndReturn

type MockService_GetClusterWorkflow_Call

type MockService_GetClusterWorkflow_Call struct {
	*mock.Call
}

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

func (*MockService_GetClusterWorkflow_Call) Return

func (*MockService_GetClusterWorkflow_Call) Run

func (*MockService_GetClusterWorkflow_Call) RunAndReturn

type MockService_ListClusterWorkflows_Call

type MockService_ListClusterWorkflows_Call struct {
	*mock.Call
}

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

func (*MockService_ListClusterWorkflows_Call) Return

func (*MockService_ListClusterWorkflows_Call) Run

type MockService_UpdateClusterWorkflow_Call

type MockService_UpdateClusterWorkflow_Call struct {
	*mock.Call
}

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

func (*MockService_UpdateClusterWorkflow_Call) Return

func (*MockService_UpdateClusterWorkflow_Call) Run

Jump to

Keyboard shortcuts

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