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: 5 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) ArgoWorkflowExists

func (_m *MockService) ArgoWorkflowExists(ctx context.Context, namespaceName string, runReference *v1alpha1.ResourceReference) bool

ArgoWorkflowExists provides a mock function with given fields: ctx, namespaceName, runReference

func (*MockService) CreateWorkflowPlane

func (_m *MockService) CreateWorkflowPlane(ctx context.Context, namespaceName string, wp *v1alpha1.WorkflowPlane) (*v1alpha1.WorkflowPlane, error)

CreateWorkflowPlane provides a mock function with given fields: ctx, namespaceName, wp

func (*MockService) DeleteWorkflowPlane

func (_m *MockService) DeleteWorkflowPlane(ctx context.Context, namespaceName string, workflowPlaneName string) error

DeleteWorkflowPlane provides a mock function with given fields: ctx, namespaceName, workflowPlaneName

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) GetWorkflowPlane

func (_m *MockService) GetWorkflowPlane(ctx context.Context, namespaceName string, workflowPlaneName string) (*v1alpha1.WorkflowPlane, error)

GetWorkflowPlane provides a mock function with given fields: ctx, namespaceName, workflowPlaneName

func (*MockService) GetWorkflowPlaneClient

func (_m *MockService) GetWorkflowPlaneClient(ctx context.Context, namespaceName string) (client.Client, error)

GetWorkflowPlaneClient provides a mock function with given fields: ctx, namespaceName

func (*MockService) ListWorkflowPlanes

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

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

func (*MockService) UpdateWorkflowPlane

func (_m *MockService) UpdateWorkflowPlane(ctx context.Context, namespaceName string, wp *v1alpha1.WorkflowPlane) (*v1alpha1.WorkflowPlane, error)

UpdateWorkflowPlane provides a mock function with given fields: ctx, namespaceName, wp

type MockService_ArgoWorkflowExists_Call

type MockService_ArgoWorkflowExists_Call struct {
	*mock.Call
}

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

func (*MockService_ArgoWorkflowExists_Call) Return

func (*MockService_ArgoWorkflowExists_Call) Run

func (*MockService_ArgoWorkflowExists_Call) RunAndReturn

type MockService_CreateWorkflowPlane_Call

type MockService_CreateWorkflowPlane_Call struct {
	*mock.Call
}

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

func (*MockService_CreateWorkflowPlane_Call) Return

func (*MockService_CreateWorkflowPlane_Call) Run

type MockService_DeleteWorkflowPlane_Call

type MockService_DeleteWorkflowPlane_Call struct {
	*mock.Call
}

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

func (*MockService_DeleteWorkflowPlane_Call) Return

func (*MockService_DeleteWorkflowPlane_Call) Run

func (_c *MockService_DeleteWorkflowPlane_Call) Run(run func(ctx context.Context, namespaceName string, workflowPlaneName string)) *MockService_DeleteWorkflowPlane_Call

func (*MockService_DeleteWorkflowPlane_Call) RunAndReturn

type MockService_Expecter

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

func (*MockService_Expecter) ArgoWorkflowExists

func (_e *MockService_Expecter) ArgoWorkflowExists(ctx interface{}, namespaceName interface{}, runReference interface{}) *MockService_ArgoWorkflowExists_Call

ArgoWorkflowExists is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • runReference *v1alpha1.ResourceReference

func (*MockService_Expecter) CreateWorkflowPlane

func (_e *MockService_Expecter) CreateWorkflowPlane(ctx interface{}, namespaceName interface{}, wp interface{}) *MockService_CreateWorkflowPlane_Call

CreateWorkflowPlane is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • wp *v1alpha1.WorkflowPlane

func (*MockService_Expecter) DeleteWorkflowPlane

func (_e *MockService_Expecter) DeleteWorkflowPlane(ctx interface{}, namespaceName interface{}, workflowPlaneName interface{}) *MockService_DeleteWorkflowPlane_Call

DeleteWorkflowPlane is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • workflowPlaneName string

func (*MockService_Expecter) GetWorkflowPlane

func (_e *MockService_Expecter) GetWorkflowPlane(ctx interface{}, namespaceName interface{}, workflowPlaneName interface{}) *MockService_GetWorkflowPlane_Call

GetWorkflowPlane is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • workflowPlaneName string

func (*MockService_Expecter) GetWorkflowPlaneClient

func (_e *MockService_Expecter) GetWorkflowPlaneClient(ctx interface{}, namespaceName interface{}) *MockService_GetWorkflowPlaneClient_Call

GetWorkflowPlaneClient is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string

func (*MockService_Expecter) ListWorkflowPlanes

func (_e *MockService_Expecter) ListWorkflowPlanes(ctx interface{}, namespaceName interface{}, opts interface{}) *MockService_ListWorkflowPlanes_Call

ListWorkflowPlanes is a helper method to define mock.On call

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

func (*MockService_Expecter) UpdateWorkflowPlane

func (_e *MockService_Expecter) UpdateWorkflowPlane(ctx interface{}, namespaceName interface{}, wp interface{}) *MockService_UpdateWorkflowPlane_Call

UpdateWorkflowPlane is a helper method to define mock.On call

  • ctx context.Context
  • namespaceName string
  • wp *v1alpha1.WorkflowPlane

type MockService_GetWorkflowPlaneClient_Call

type MockService_GetWorkflowPlaneClient_Call struct {
	*mock.Call
}

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

func (*MockService_GetWorkflowPlaneClient_Call) Return

func (*MockService_GetWorkflowPlaneClient_Call) Run

func (*MockService_GetWorkflowPlaneClient_Call) RunAndReturn

type MockService_GetWorkflowPlane_Call

type MockService_GetWorkflowPlane_Call struct {
	*mock.Call
}

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

func (*MockService_GetWorkflowPlane_Call) Return

func (*MockService_GetWorkflowPlane_Call) Run

func (_c *MockService_GetWorkflowPlane_Call) Run(run func(ctx context.Context, namespaceName string, workflowPlaneName string)) *MockService_GetWorkflowPlane_Call

func (*MockService_GetWorkflowPlane_Call) RunAndReturn

type MockService_ListWorkflowPlanes_Call

type MockService_ListWorkflowPlanes_Call struct {
	*mock.Call
}

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

func (*MockService_ListWorkflowPlanes_Call) Return

func (*MockService_ListWorkflowPlanes_Call) Run

type MockService_UpdateWorkflowPlane_Call

type MockService_UpdateWorkflowPlane_Call struct {
	*mock.Call
}

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

func (*MockService_UpdateWorkflowPlane_Call) Return

func (*MockService_UpdateWorkflowPlane_Call) Run

Jump to

Keyboard shortcuts

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