mocks

package
v0.0.0-...-d7890aa Latest Latest
Warning

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

Go to latest
Published: Nov 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChaosExperimentService

type ChaosExperimentService struct {
	mock.Mock
}

ChaosExperimentService is an autogenerated mock type for the Service type

func NewChaosExperimentService

func NewChaosExperimentService(t interface {
	mock.TestingT
	Cleanup(func())
}) *ChaosExperimentService

NewChaosExperimentService creates a new instance of ChaosExperimentService. 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 (*ChaosExperimentService) EXPECT

func (*ChaosExperimentService) ProcessExperiment

ProcessExperiment provides a mock function with given fields: ctx, workflow, projectID, revID

func (*ChaosExperimentService) ProcessExperimentCreation

func (_m *ChaosExperimentService) ProcessExperimentCreation(ctx context.Context, input *model.ChaosExperimentRequest, username string, projectID string, wfType *chaos_experiment.ChaosExperimentType, revisionID string, r *data_store.StateData) error

ProcessExperimentCreation provides a mock function with given fields: ctx, input, username, projectID, wfType, revisionID, r

func (*ChaosExperimentService) ProcessExperimentDelete

func (_m *ChaosExperimentService) ProcessExperimentDelete(query primitive.D, workflow chaos_experiment.ChaosExperimentRequest, username string, r *data_store.StateData) error

ProcessExperimentDelete provides a mock function with given fields: query, workflow, username, r

func (*ChaosExperimentService) ProcessExperimentUpdate

func (_m *ChaosExperimentService) ProcessExperimentUpdate(workflow *model.ChaosExperimentRequest, username string, wfType *chaos_experiment.ChaosExperimentType, revisionID string, updateRevision bool, projectID string, r *data_store.StateData) error

ProcessExperimentUpdate provides a mock function with given fields: workflow, username, wfType, revisionID, updateRevision, projectID, r

func (*ChaosExperimentService) UpdateRuntimeCronWorkflowConfiguration

func (_m *ChaosExperimentService) UpdateRuntimeCronWorkflowConfiguration(cronWorkflowManifest v1alpha1.CronWorkflow, experiment chaos_experiment.ChaosExperimentRequest) (v1alpha1.CronWorkflow, []string, error)

UpdateRuntimeCronWorkflowConfiguration provides a mock function with given fields: cronWorkflowManifest, experiment

type ChaosExperimentService_Expecter

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

func (*ChaosExperimentService_Expecter) ProcessExperiment

func (_e *ChaosExperimentService_Expecter) ProcessExperiment(ctx interface{}, workflow interface{}, projectID interface{}, revID interface{}) *ChaosExperimentService_ProcessExperiment_Call

ProcessExperiment is a helper method to define mock.On call

  • ctx context.Context
  • workflow *model.ChaosExperimentRequest
  • projectID string
  • revID string

func (*ChaosExperimentService_Expecter) ProcessExperimentCreation

func (_e *ChaosExperimentService_Expecter) ProcessExperimentCreation(ctx interface{}, input interface{}, username interface{}, projectID interface{}, wfType interface{}, revisionID interface{}, r interface{}) *ChaosExperimentService_ProcessExperimentCreation_Call

ProcessExperimentCreation is a helper method to define mock.On call

  • ctx context.Context
  • input *model.ChaosExperimentRequest
  • username string
  • projectID string
  • wfType *chaos_experiment.ChaosExperimentType
  • revisionID string
  • r *data_store.StateData

func (*ChaosExperimentService_Expecter) ProcessExperimentDelete

func (_e *ChaosExperimentService_Expecter) ProcessExperimentDelete(query interface{}, workflow interface{}, username interface{}, r interface{}) *ChaosExperimentService_ProcessExperimentDelete_Call

ProcessExperimentDelete is a helper method to define mock.On call

  • query primitive.D
  • workflow chaos_experiment.ChaosExperimentRequest
  • username string
  • r *data_store.StateData

func (*ChaosExperimentService_Expecter) ProcessExperimentUpdate

func (_e *ChaosExperimentService_Expecter) ProcessExperimentUpdate(workflow interface{}, username interface{}, wfType interface{}, revisionID interface{}, updateRevision interface{}, projectID interface{}, r interface{}) *ChaosExperimentService_ProcessExperimentUpdate_Call

ProcessExperimentUpdate is a helper method to define mock.On call

  • workflow *model.ChaosExperimentRequest
  • username string
  • wfType *chaos_experiment.ChaosExperimentType
  • revisionID string
  • updateRevision bool
  • projectID string
  • r *data_store.StateData

func (*ChaosExperimentService_Expecter) UpdateRuntimeCronWorkflowConfiguration

func (_e *ChaosExperimentService_Expecter) UpdateRuntimeCronWorkflowConfiguration(cronWorkflowManifest interface{}, experiment interface{}) *ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call

UpdateRuntimeCronWorkflowConfiguration is a helper method to define mock.On call

  • cronWorkflowManifest v1alpha1.CronWorkflow
  • experiment chaos_experiment.ChaosExperimentRequest

type ChaosExperimentService_ProcessExperimentCreation_Call

type ChaosExperimentService_ProcessExperimentCreation_Call struct {
	*mock.Call
}

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

func (*ChaosExperimentService_ProcessExperimentCreation_Call) Return

func (*ChaosExperimentService_ProcessExperimentCreation_Call) Run

type ChaosExperimentService_ProcessExperimentDelete_Call

type ChaosExperimentService_ProcessExperimentDelete_Call struct {
	*mock.Call
}

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

func (*ChaosExperimentService_ProcessExperimentDelete_Call) Return

func (*ChaosExperimentService_ProcessExperimentDelete_Call) Run

type ChaosExperimentService_ProcessExperimentUpdate_Call

type ChaosExperimentService_ProcessExperimentUpdate_Call struct {
	*mock.Call
}

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

func (*ChaosExperimentService_ProcessExperimentUpdate_Call) Return

func (*ChaosExperimentService_ProcessExperimentUpdate_Call) Run

type ChaosExperimentService_ProcessExperiment_Call

type ChaosExperimentService_ProcessExperiment_Call struct {
	*mock.Call
}

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

func (*ChaosExperimentService_ProcessExperiment_Call) Run

type ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call

type ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call struct {
	*mock.Call
}

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

func (*ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call) Return

func (*ChaosExperimentService_UpdateRuntimeCronWorkflowConfiguration_Call) Run

Jump to

Keyboard shortcuts

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