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

func (_m *MockService) CreateClusterWorkflowPlane(ctx context.Context, cwp *v1alpha1.ClusterWorkflowPlane) (*v1alpha1.ClusterWorkflowPlane, error)

CreateClusterWorkflowPlane provides a mock function with given fields: ctx, cwp

func (*MockService) DeleteClusterWorkflowPlane

func (_m *MockService) DeleteClusterWorkflowPlane(ctx context.Context, clusterWorkflowPlaneName string) error

DeleteClusterWorkflowPlane provides a mock function with given fields: ctx, clusterWorkflowPlaneName

func (*MockService) EXPECT

func (_m *MockService) EXPECT() *MockService_Expecter

func (*MockService) GetClusterWorkflowPlane

func (_m *MockService) GetClusterWorkflowPlane(ctx context.Context, clusterWorkflowPlaneName string) (*v1alpha1.ClusterWorkflowPlane, error)

GetClusterWorkflowPlane provides a mock function with given fields: ctx, clusterWorkflowPlaneName

func (*MockService) ListClusterWorkflowPlanes

func (_m *MockService) ListClusterWorkflowPlanes(ctx context.Context, opts services.ListOptions) (*services.ListResult[v1alpha1.ClusterWorkflowPlane], error)

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

func (*MockService) UpdateClusterWorkflowPlane

func (_m *MockService) UpdateClusterWorkflowPlane(ctx context.Context, cwp *v1alpha1.ClusterWorkflowPlane) (*v1alpha1.ClusterWorkflowPlane, error)

UpdateClusterWorkflowPlane provides a mock function with given fields: ctx, cwp

type MockService_CreateClusterWorkflowPlane_Call

type MockService_CreateClusterWorkflowPlane_Call struct {
	*mock.Call
}

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

func (*MockService_CreateClusterWorkflowPlane_Call) Return

func (*MockService_CreateClusterWorkflowPlane_Call) Run

type MockService_DeleteClusterWorkflowPlane_Call

type MockService_DeleteClusterWorkflowPlane_Call struct {
	*mock.Call
}

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

func (*MockService_DeleteClusterWorkflowPlane_Call) Return

func (*MockService_DeleteClusterWorkflowPlane_Call) Run

func (*MockService_DeleteClusterWorkflowPlane_Call) RunAndReturn

type MockService_Expecter

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

func (*MockService_Expecter) CreateClusterWorkflowPlane

func (_e *MockService_Expecter) CreateClusterWorkflowPlane(ctx interface{}, cwp interface{}) *MockService_CreateClusterWorkflowPlane_Call

CreateClusterWorkflowPlane is a helper method to define mock.On call

  • ctx context.Context
  • cwp *v1alpha1.ClusterWorkflowPlane

func (*MockService_Expecter) DeleteClusterWorkflowPlane

func (_e *MockService_Expecter) DeleteClusterWorkflowPlane(ctx interface{}, clusterWorkflowPlaneName interface{}) *MockService_DeleteClusterWorkflowPlane_Call

DeleteClusterWorkflowPlane is a helper method to define mock.On call

  • ctx context.Context
  • clusterWorkflowPlaneName string

func (*MockService_Expecter) GetClusterWorkflowPlane

func (_e *MockService_Expecter) GetClusterWorkflowPlane(ctx interface{}, clusterWorkflowPlaneName interface{}) *MockService_GetClusterWorkflowPlane_Call

GetClusterWorkflowPlane is a helper method to define mock.On call

  • ctx context.Context
  • clusterWorkflowPlaneName string

func (*MockService_Expecter) ListClusterWorkflowPlanes

func (_e *MockService_Expecter) ListClusterWorkflowPlanes(ctx interface{}, opts interface{}) *MockService_ListClusterWorkflowPlanes_Call

ListClusterWorkflowPlanes is a helper method to define mock.On call

  • ctx context.Context
  • opts services.ListOptions

func (*MockService_Expecter) UpdateClusterWorkflowPlane

func (_e *MockService_Expecter) UpdateClusterWorkflowPlane(ctx interface{}, cwp interface{}) *MockService_UpdateClusterWorkflowPlane_Call

UpdateClusterWorkflowPlane is a helper method to define mock.On call

  • ctx context.Context
  • cwp *v1alpha1.ClusterWorkflowPlane

type MockService_GetClusterWorkflowPlane_Call

type MockService_GetClusterWorkflowPlane_Call struct {
	*mock.Call
}

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

func (*MockService_GetClusterWorkflowPlane_Call) Return

func (*MockService_GetClusterWorkflowPlane_Call) Run

func (*MockService_GetClusterWorkflowPlane_Call) RunAndReturn

type MockService_ListClusterWorkflowPlanes_Call

type MockService_ListClusterWorkflowPlanes_Call struct {
	*mock.Call
}

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

func (*MockService_ListClusterWorkflowPlanes_Call) Run

type MockService_UpdateClusterWorkflowPlane_Call

type MockService_UpdateClusterWorkflowPlane_Call struct {
	*mock.Call
}

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

func (*MockService_UpdateClusterWorkflowPlane_Call) Return

func (*MockService_UpdateClusterWorkflowPlane_Call) Run

Jump to

Keyboard shortcuts

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