mocks

package
v0.0.0-...-267b159 Latest Latest
Warning

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

Go to latest
Published: Dec 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewMockCompiler

func NewMockCompiler() interfaces.Compiler

Types

type MockCompiler

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

func (*MockCompiler) AddCompileTaskCallback

func (c *MockCompiler) AddCompileTaskCallback(
	callback func(task *core.TaskTemplate) (*core.CompiledTask, error))

func (*MockCompiler) AddCompileWorkflowCallback

func (c *MockCompiler) AddCompileWorkflowCallback(callback func(
	primaryWf *core.WorkflowTemplate, subworkflows []*core.WorkflowTemplate, tasks []*core.CompiledTask,
	launchPlans []common.InterfaceProvider) (*core.CompiledWorkflowClosure, error))

func (*MockCompiler) AddGetRequirementCallback

func (c *MockCompiler) AddGetRequirementCallback(
	callback func(fg *core.WorkflowTemplate, subWfs []*core.WorkflowTemplate) (
		reqs compiler.WorkflowExecutionRequirements, err error))

func (*MockCompiler) CompileTask

func (c *MockCompiler) CompileTask(task *core.TaskTemplate) (*core.CompiledTask, error)

func (*MockCompiler) CompileWorkflow

func (c *MockCompiler) CompileWorkflow(
	primaryWf *core.WorkflowTemplate, subworkflows []*core.WorkflowTemplate, tasks []*core.CompiledTask,
	launchPlans []common.InterfaceProvider) (*core.CompiledWorkflowClosure, error)

func (*MockCompiler) GetRequirements

func (c *MockCompiler) GetRequirements(fg *core.WorkflowTemplate, subWfs []*core.WorkflowTemplate) (
	reqs compiler.WorkflowExecutionRequirements, err error)

type NebulaWorkflowBuilder

type NebulaWorkflowBuilder struct {
	mock.Mock
}

NebulaWorkflowBuilder is an autogenerated mock type for the NebulaWorkflowBuilder type

func (*NebulaWorkflowBuilder) Build

Build provides a mock function with given fields: wfClosure, inputs, executionID, namespace

func (*NebulaWorkflowBuilder) OnBuild

func (*NebulaWorkflowBuilder) OnBuildMatch

func (_m *NebulaWorkflowBuilder) OnBuildMatch(matchers ...interface{}) *NebulaWorkflowBuilder_Build

type NebulaWorkflowBuilder_Build

type NebulaWorkflowBuilder_Build struct {
	*mock.Call
}

func (NebulaWorkflowBuilder_Build) Return

type WorkflowExecutor

type WorkflowExecutor struct {
	mock.Mock
}

WorkflowExecutor is an autogenerated mock type for the WorkflowExecutor type

func (*WorkflowExecutor) Abort

Abort provides a mock function with given fields: ctx, data

func (*WorkflowExecutor) Execute

Execute provides a mock function with given fields: ctx, data

func (*WorkflowExecutor) ID

func (_m *WorkflowExecutor) ID() string

ID provides a mock function with given fields:

func (*WorkflowExecutor) OnAbort

func (*WorkflowExecutor) OnAbortMatch

func (_m *WorkflowExecutor) OnAbortMatch(matchers ...interface{}) *WorkflowExecutor_Abort

func (*WorkflowExecutor) OnExecute

func (*WorkflowExecutor) OnExecuteMatch

func (_m *WorkflowExecutor) OnExecuteMatch(matchers ...interface{}) *WorkflowExecutor_Execute

func (*WorkflowExecutor) OnID

func (*WorkflowExecutor) OnIDMatch

func (_m *WorkflowExecutor) OnIDMatch(matchers ...interface{}) *WorkflowExecutor_ID

type WorkflowExecutor_Abort

type WorkflowExecutor_Abort struct {
	*mock.Call
}

func (WorkflowExecutor_Abort) Return

type WorkflowExecutor_Execute

type WorkflowExecutor_Execute struct {
	*mock.Call
}

func (WorkflowExecutor_Execute) Return

type WorkflowExecutor_ID

type WorkflowExecutor_ID struct {
	*mock.Call
}

func (WorkflowExecutor_ID) Return

Jump to

Keyboard shortcuts

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