mocks

package
v1.3.1 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 2026 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockExecutionHelper

type MockExecutionHelper struct {
	mock.Mock
}

MockExecutionHelper is an autogenerated mock type for the ExecutionHelper type

func NewMockExecutionHelper

func NewMockExecutionHelper(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockExecutionHelper

NewMockExecutionHelper creates a new instance of MockExecutionHelper. 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 (*MockExecutionHelper) CallCapability

func (_m *MockExecutionHelper) CallCapability(ctx context.Context, request *sdk.CapabilityRequest) (*sdk.CapabilityResponse, error)

CallCapability provides a mock function with given fields: ctx, request

func (*MockExecutionHelper) EXPECT

func (*MockExecutionHelper) EmitUserLog

func (_m *MockExecutionHelper) EmitUserLog(log string) error

EmitUserLog provides a mock function with given fields: log

func (*MockExecutionHelper) EmitUserMetric

func (_m *MockExecutionHelper) EmitUserMetric(ctx context.Context, metric *v2.WorkflowUserMetric) error

EmitUserMetric provides a mock function with given fields: ctx, metric

func (*MockExecutionHelper) GetDONTime

func (_m *MockExecutionHelper) GetDONTime() (time.Time, error)

GetDONTime provides a mock function with no fields

func (*MockExecutionHelper) GetNodeTime

func (_m *MockExecutionHelper) GetNodeTime() time.Time

GetNodeTime provides a mock function with no fields

func (*MockExecutionHelper) GetSecrets

func (_m *MockExecutionHelper) GetSecrets(ctx context.Context, request *sdk.GetSecretsRequest) ([]*sdk.SecretResponse, error)

GetSecrets provides a mock function with given fields: ctx, request

func (*MockExecutionHelper) GetWorkflowExecutionID

func (_m *MockExecutionHelper) GetWorkflowExecutionID() string

GetWorkflowExecutionID provides a mock function with no fields

type MockExecutionHelperWithRawSecrets

type MockExecutionHelperWithRawSecrets struct {
	mock.Mock
}

MockExecutionHelperWithRawSecrets is an autogenerated mock type for the ExecutionHelperWithRawSecrets type

func NewMockExecutionHelperWithRawSecrets

func NewMockExecutionHelperWithRawSecrets(t interface {
	mock.TestingT
	Cleanup(func())
}) *MockExecutionHelperWithRawSecrets

NewMockExecutionHelperWithRawSecrets creates a new instance of MockExecutionHelperWithRawSecrets. 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 (*MockExecutionHelperWithRawSecrets) CallCapability

CallCapability provides a mock function with given fields: ctx, request

func (*MockExecutionHelperWithRawSecrets) EXPECT

func (*MockExecutionHelperWithRawSecrets) EmitUserLog

func (_m *MockExecutionHelperWithRawSecrets) EmitUserLog(log string) error

EmitUserLog provides a mock function with given fields: log

func (*MockExecutionHelperWithRawSecrets) EmitUserMetric

EmitUserMetric provides a mock function with given fields: ctx, metric

func (*MockExecutionHelperWithRawSecrets) GetDONTime

func (_m *MockExecutionHelperWithRawSecrets) GetDONTime() (time.Time, error)

GetDONTime provides a mock function with no fields

func (*MockExecutionHelperWithRawSecrets) GetNodeTime

func (_m *MockExecutionHelperWithRawSecrets) GetNodeTime() time.Time

GetNodeTime provides a mock function with no fields

func (*MockExecutionHelperWithRawSecrets) GetOwner

GetOwner provides a mock function with no fields

func (*MockExecutionHelperWithRawSecrets) GetRawSecrets

GetRawSecrets provides a mock function with given fields: ctx, request, fetcher

func (*MockExecutionHelperWithRawSecrets) GetSecrets

GetSecrets provides a mock function with given fields: ctx, request

func (*MockExecutionHelperWithRawSecrets) GetWorkflowExecutionID

func (_m *MockExecutionHelperWithRawSecrets) GetWorkflowExecutionID() string

GetWorkflowExecutionID provides a mock function with no fields

type MockExecutionHelperWithRawSecrets_CallCapability_Call

type MockExecutionHelperWithRawSecrets_CallCapability_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelperWithRawSecrets_CallCapability_Call) Return

func (*MockExecutionHelperWithRawSecrets_CallCapability_Call) Run

type MockExecutionHelperWithRawSecrets_EmitUserLog_Call

type MockExecutionHelperWithRawSecrets_EmitUserLog_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelperWithRawSecrets_EmitUserLog_Call) Return

func (*MockExecutionHelperWithRawSecrets_EmitUserLog_Call) Run

func (*MockExecutionHelperWithRawSecrets_EmitUserLog_Call) RunAndReturn

type MockExecutionHelperWithRawSecrets_EmitUserMetric_Call

type MockExecutionHelperWithRawSecrets_EmitUserMetric_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelperWithRawSecrets_EmitUserMetric_Call) Return

func (*MockExecutionHelperWithRawSecrets_EmitUserMetric_Call) Run

func (*MockExecutionHelperWithRawSecrets_EmitUserMetric_Call) RunAndReturn

type MockExecutionHelperWithRawSecrets_Expecter

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

func (*MockExecutionHelperWithRawSecrets_Expecter) CallCapability

func (_e *MockExecutionHelperWithRawSecrets_Expecter) CallCapability(ctx interface{}, request interface{}) *MockExecutionHelperWithRawSecrets_CallCapability_Call

CallCapability is a helper method to define mock.On call

  • ctx context.Context
  • request *sdk.CapabilityRequest

func (*MockExecutionHelperWithRawSecrets_Expecter) EmitUserLog

EmitUserLog is a helper method to define mock.On call

  • log string

func (*MockExecutionHelperWithRawSecrets_Expecter) EmitUserMetric

func (_e *MockExecutionHelperWithRawSecrets_Expecter) EmitUserMetric(ctx interface{}, metric interface{}) *MockExecutionHelperWithRawSecrets_EmitUserMetric_Call

EmitUserMetric is a helper method to define mock.On call

  • ctx context.Context
  • metric *v2.WorkflowUserMetric

func (*MockExecutionHelperWithRawSecrets_Expecter) GetDONTime

GetDONTime is a helper method to define mock.On call

func (*MockExecutionHelperWithRawSecrets_Expecter) GetNodeTime

GetNodeTime is a helper method to define mock.On call

func (*MockExecutionHelperWithRawSecrets_Expecter) GetOwner

GetOwner is a helper method to define mock.On call

func (*MockExecutionHelperWithRawSecrets_Expecter) GetRawSecrets

func (_e *MockExecutionHelperWithRawSecrets_Expecter) GetRawSecrets(ctx interface{}, request interface{}, fetcher interface{}) *MockExecutionHelperWithRawSecrets_GetRawSecrets_Call

GetRawSecrets is a helper method to define mock.On call

  • ctx context.Context
  • request *sdk.GetSecretsRequest
  • fetcher host.EncryptionKeyFetcher

func (*MockExecutionHelperWithRawSecrets_Expecter) GetSecrets

func (_e *MockExecutionHelperWithRawSecrets_Expecter) GetSecrets(ctx interface{}, request interface{}) *MockExecutionHelperWithRawSecrets_GetSecrets_Call

GetSecrets is a helper method to define mock.On call

  • ctx context.Context
  • request *sdk.GetSecretsRequest

func (*MockExecutionHelperWithRawSecrets_Expecter) GetWorkflowExecutionID

GetWorkflowExecutionID is a helper method to define mock.On call

type MockExecutionHelperWithRawSecrets_GetDONTime_Call

type MockExecutionHelperWithRawSecrets_GetDONTime_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelperWithRawSecrets_GetDONTime_Call) Return

func (*MockExecutionHelperWithRawSecrets_GetDONTime_Call) Run

func (*MockExecutionHelperWithRawSecrets_GetDONTime_Call) RunAndReturn

type MockExecutionHelperWithRawSecrets_GetNodeTime_Call

type MockExecutionHelperWithRawSecrets_GetNodeTime_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelperWithRawSecrets_GetNodeTime_Call) Return

func (*MockExecutionHelperWithRawSecrets_GetNodeTime_Call) Run

func (*MockExecutionHelperWithRawSecrets_GetNodeTime_Call) RunAndReturn

type MockExecutionHelperWithRawSecrets_GetOwner_Call

type MockExecutionHelperWithRawSecrets_GetOwner_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelperWithRawSecrets_GetOwner_Call) Return

func (*MockExecutionHelperWithRawSecrets_GetOwner_Call) Run

func (*MockExecutionHelperWithRawSecrets_GetOwner_Call) RunAndReturn

type MockExecutionHelperWithRawSecrets_GetRawSecrets_Call

type MockExecutionHelperWithRawSecrets_GetRawSecrets_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelperWithRawSecrets_GetRawSecrets_Call) Return

func (*MockExecutionHelperWithRawSecrets_GetRawSecrets_Call) Run

type MockExecutionHelperWithRawSecrets_GetSecrets_Call

type MockExecutionHelperWithRawSecrets_GetSecrets_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelperWithRawSecrets_GetSecrets_Call) Return

func (*MockExecutionHelperWithRawSecrets_GetSecrets_Call) Run

func (*MockExecutionHelperWithRawSecrets_GetSecrets_Call) RunAndReturn

type MockExecutionHelperWithRawSecrets_GetWorkflowExecutionID_Call

type MockExecutionHelperWithRawSecrets_GetWorkflowExecutionID_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelperWithRawSecrets_GetWorkflowExecutionID_Call) Return

func (*MockExecutionHelperWithRawSecrets_GetWorkflowExecutionID_Call) Run

func (*MockExecutionHelperWithRawSecrets_GetWorkflowExecutionID_Call) RunAndReturn

type MockExecutionHelper_CallCapability_Call

type MockExecutionHelper_CallCapability_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelper_CallCapability_Call) Return

func (*MockExecutionHelper_CallCapability_Call) Run

func (*MockExecutionHelper_CallCapability_Call) RunAndReturn

type MockExecutionHelper_EmitUserLog_Call

type MockExecutionHelper_EmitUserLog_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelper_EmitUserLog_Call) Return

func (*MockExecutionHelper_EmitUserLog_Call) Run

func (*MockExecutionHelper_EmitUserLog_Call) RunAndReturn

type MockExecutionHelper_EmitUserMetric_Call

type MockExecutionHelper_EmitUserMetric_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelper_EmitUserMetric_Call) Return

func (*MockExecutionHelper_EmitUserMetric_Call) Run

func (*MockExecutionHelper_EmitUserMetric_Call) RunAndReturn

type MockExecutionHelper_Expecter

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

func (*MockExecutionHelper_Expecter) CallCapability

func (_e *MockExecutionHelper_Expecter) CallCapability(ctx interface{}, request interface{}) *MockExecutionHelper_CallCapability_Call

CallCapability is a helper method to define mock.On call

  • ctx context.Context
  • request *sdk.CapabilityRequest

func (*MockExecutionHelper_Expecter) EmitUserLog

func (_e *MockExecutionHelper_Expecter) EmitUserLog(log interface{}) *MockExecutionHelper_EmitUserLog_Call

EmitUserLog is a helper method to define mock.On call

  • log string

func (*MockExecutionHelper_Expecter) EmitUserMetric

func (_e *MockExecutionHelper_Expecter) EmitUserMetric(ctx interface{}, metric interface{}) *MockExecutionHelper_EmitUserMetric_Call

EmitUserMetric is a helper method to define mock.On call

  • ctx context.Context
  • metric *v2.WorkflowUserMetric

func (*MockExecutionHelper_Expecter) GetDONTime

GetDONTime is a helper method to define mock.On call

func (*MockExecutionHelper_Expecter) GetNodeTime

GetNodeTime is a helper method to define mock.On call

func (*MockExecutionHelper_Expecter) GetSecrets

func (_e *MockExecutionHelper_Expecter) GetSecrets(ctx interface{}, request interface{}) *MockExecutionHelper_GetSecrets_Call

GetSecrets is a helper method to define mock.On call

  • ctx context.Context
  • request *sdk.GetSecretsRequest

func (*MockExecutionHelper_Expecter) GetWorkflowExecutionID

GetWorkflowExecutionID is a helper method to define mock.On call

type MockExecutionHelper_GetDONTime_Call

type MockExecutionHelper_GetDONTime_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelper_GetDONTime_Call) Return

func (*MockExecutionHelper_GetDONTime_Call) Run

func (*MockExecutionHelper_GetDONTime_Call) RunAndReturn

type MockExecutionHelper_GetNodeTime_Call

type MockExecutionHelper_GetNodeTime_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelper_GetNodeTime_Call) Return

func (*MockExecutionHelper_GetNodeTime_Call) Run

func (*MockExecutionHelper_GetNodeTime_Call) RunAndReturn

type MockExecutionHelper_GetSecrets_Call

type MockExecutionHelper_GetSecrets_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelper_GetSecrets_Call) Return

func (*MockExecutionHelper_GetSecrets_Call) Run

func (*MockExecutionHelper_GetSecrets_Call) RunAndReturn

type MockExecutionHelper_GetWorkflowExecutionID_Call

type MockExecutionHelper_GetWorkflowExecutionID_Call struct {
	*mock.Call
}

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

func (*MockExecutionHelper_GetWorkflowExecutionID_Call) Return

func (*MockExecutionHelper_GetWorkflowExecutionID_Call) Run

func (*MockExecutionHelper_GetWorkflowExecutionID_Call) RunAndReturn

type Module

type Module struct {
	mock.Mock
}

Module is an autogenerated mock type for the Module type

func NewModule

func NewModule(t interface {
	mock.TestingT
	Cleanup(func())
}) *Module

NewModule creates a new instance of Module. 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 (*Module) Close

func (_m *Module) Close()

Close provides a mock function with no fields

func (*Module) EXPECT

func (_m *Module) EXPECT() *Module_Expecter

func (*Module) Execute

func (_m *Module) Execute(ctx context.Context, request *sdk.ExecuteRequest, handler host.ExecutionHelper) (*sdk.ExecutionResult, error)

Execute provides a mock function with given fields: ctx, request, handler

func (*Module) IsLegacyDAG

func (_m *Module) IsLegacyDAG() bool

IsLegacyDAG provides a mock function with no fields

func (*Module) Start

func (_m *Module) Start()

Start provides a mock function with no fields

type Module_Close_Call

type Module_Close_Call struct {
	*mock.Call
}

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

func (*Module_Close_Call) Return

func (_c *Module_Close_Call) Return() *Module_Close_Call

func (*Module_Close_Call) Run

func (_c *Module_Close_Call) Run(run func()) *Module_Close_Call

func (*Module_Close_Call) RunAndReturn

func (_c *Module_Close_Call) RunAndReturn(run func()) *Module_Close_Call

type Module_Execute_Call

type Module_Execute_Call struct {
	*mock.Call
}

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

func (*Module_Execute_Call) Return

func (*Module_Execute_Call) Run

func (_c *Module_Execute_Call) Run(run func(ctx context.Context, request *sdk.ExecuteRequest, handler host.ExecutionHelper)) *Module_Execute_Call

func (*Module_Execute_Call) RunAndReturn

type Module_Expecter

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

func (*Module_Expecter) Close

func (_e *Module_Expecter) Close() *Module_Close_Call

Close is a helper method to define mock.On call

func (*Module_Expecter) Execute

func (_e *Module_Expecter) Execute(ctx interface{}, request interface{}, handler interface{}) *Module_Execute_Call

Execute is a helper method to define mock.On call

  • ctx context.Context
  • request *sdk.ExecuteRequest
  • handler host.ExecutionHelper

func (*Module_Expecter) IsLegacyDAG

func (_e *Module_Expecter) IsLegacyDAG() *Module_IsLegacyDAG_Call

IsLegacyDAG is a helper method to define mock.On call

func (*Module_Expecter) Start

func (_e *Module_Expecter) Start() *Module_Start_Call

Start is a helper method to define mock.On call

type Module_IsLegacyDAG_Call

type Module_IsLegacyDAG_Call struct {
	*mock.Call
}

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

func (*Module_IsLegacyDAG_Call) Return

func (*Module_IsLegacyDAG_Call) Run

func (_c *Module_IsLegacyDAG_Call) Run(run func()) *Module_IsLegacyDAG_Call

func (*Module_IsLegacyDAG_Call) RunAndReturn

func (_c *Module_IsLegacyDAG_Call) RunAndReturn(run func() bool) *Module_IsLegacyDAG_Call

type Module_Start_Call

type Module_Start_Call struct {
	*mock.Call
}

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

func (*Module_Start_Call) Return

func (_c *Module_Start_Call) Return() *Module_Start_Call

func (*Module_Start_Call) Run

func (_c *Module_Start_Call) Run(run func()) *Module_Start_Call

func (*Module_Start_Call) RunAndReturn

func (_c *Module_Start_Call) RunAndReturn(run func()) *Module_Start_Call

Jump to

Keyboard shortcuts

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