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

testlib

package
v1.35.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2026 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(tc *TestCase)

Types

type Step

type Step struct {
	Description string
	// SetUp if non-nil will be called with the cloud interface. Use this to
	// modify the environment, manipulate objects, etc.
	SetUp       func(cloud.Cloud)
	Graph       *rgraph.Graph
	WantActions []exec.Action
}

Step in the configuration changes.

type TestCase

type TestCase struct {
	// Name of the TestCase. The format should be
	// "<category>/<test-case>/<subtestcase>". This allows for easy filter by
	// prefix matching.
	Name string
	// Description is a human-readable description of what is being tested.
	Description string
	Steps       []Step
}

TestCase for a given sequence of configurations.

func Case

func Case(name string) *TestCase

func Cases

func Cases() []*TestCase

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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