Help us shape the future of Go! Take the 2026 Go Developer Survey

testexecutor

package
v0.0.84 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Overview

Package testexecutor supplies a local runner for c2j integration fixtures.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type StandaloneExecutor

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

func NewStandaloneExecutor

func NewStandaloneExecutor(deps ops2.ServiceDependencies2, registry *ops.ActivityRegistry, logger *zap.Logger, allocations ...execution.Allocation) (*StandaloneExecutor, error)

NewStandaloneExecutor creates a new standalone recipe executor

func (*StandaloneExecutor) Execute

func (e *StandaloneExecutor) Execute(
	ctx context.Context,
	r recipe.Recipe,
	inputs map[string]interface{},
	jobCtx contextual.JobContext,
	gitRef string,
) (map[string]interface{}, error)

Execute runs a recipe with the given inputs

func (*StandaloneExecutor) ExecuteWithRegistry

func (e *StandaloneExecutor) ExecuteWithRegistry(
	ctx context.Context,
	r recipe.Recipe,
	inputs map[string]interface{},
	jobCtx contextual.JobContext,
	gitRef string,
	registry workflow.RecipeProjectProvider,
) (map[string]interface{}, error)

ExecuteWithRegistry runs a recipe with a custom registry for resolving recipe references.

func (*StandaloneExecutor) GetActivityRegistry

func (e *StandaloneExecutor) GetActivityRegistry() *ops.ActivityRegistry

GetActivityRegistry returns the activity registry

Jump to

Keyboard shortcuts

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