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

engine

package
v0.3.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2026 License: Apache-2.0 Imports: 24 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateStep added in v0.2.0

func ValidateStep(step *app.Step, exportedBindings map[string]bool) error

Types

type AssertionFailure

type AssertionFailure struct {
	Err      *oops.AppError
	Response []byte
	Flow     *app.Flow
	Step     *app.Step
}

func (*AssertionFailure) Error

func (self *AssertionFailure) Error() string

func (*AssertionFailure) Unwrap

func (self *AssertionFailure) Unwrap() error

type Runner

type Runner struct {
	RunId string
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(settings RunnerSettings) *Runner

func (*Runner) Execute

func (self *Runner) Execute(step *app.Step) ([]byte, error)

Execute a step.

Returns the response in bytes and an error that could be an AssertionFailure that is a request assertion failure which is not an actual error.

func (*Runner) StepsRan

func (self *Runner) StepsRan() int

func (*Runner) TotalSteps

func (self *Runner) TotalSteps() int

func (*Runner) ValidateConfig added in v0.2.0

func (self *Runner) ValidateConfig() error

ValidateConfig validates the config logically at runtime where some features might not work with others, or if some bindings are being used before assignment for example. It returns a "is valid" boolean and a string error message on failure.

type RunnerSettings

type RunnerSettings struct {
	// The settings file for this project.
	Cfg             *config.Cfg
	BaseUrlOverride string
}

Jump to

Keyboard shortcuts

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