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

e2e

package
v0.11.796 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AssertByCSV added in v0.11.220

func AssertByCSV(i *Task) error

func AssertByContains

func AssertByContains(i *Task) error

func AssertByError

func AssertByError(i *Task) error

func AssertByExitCode

func AssertByExitCode(i *Task) error

func AssertByOutputJSON

func AssertByOutputJSON(i *Task) error

func AssertByOutputString

func AssertByOutputString(i *Task) error

func AssertByQueryResultCSV added in v0.11.175

func AssertByQueryResultCSV(i *Task) error

func AssertByYAML added in v0.11.138

func AssertByYAML(i *Task) error

func AssertCustomState

func AssertCustomState(dir string, expected *scheduler.PipelineState) func(*Task) error

Types

type Output

type Output struct {
	ExitCode int
	Output   string
	Error    string
	Contains []string
	CSVFile  string
}

type Task

type Task struct {
	Name          string
	Command       string
	Retries       int
	Args          []string
	Env           []string
	WorkingDir    string
	Expected      Output
	Actual        Output
	SkipJSONNodes []string
	Asserts       []func(*Task) error
}

func (*Task) Run

func (s *Task) Run() error

type Workflow

type Workflow struct {
	Name  string
	Steps []Task
}

func (*Workflow) Run

func (w *Workflow) Run() error

type WorkflowError

type WorkflowError struct {
	StepName     string
	WorkflowName string
	Err          error
}

func (*WorkflowError) Error

func (e *WorkflowError) Error() string

Jump to

Keyboard shortcuts

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