systest

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	EnvVarExpectPreconditionsMet = "DEVNET_EXPECT_PRECONDITIONS_MET"
)

Variables

This section is empty.

Functions

func InteropSystemTest

func InteropSystemTest(t BasicT, f InteropSystemTestFunc, validators ...PreconditionValidator)

InteropSystemTest delegates to the default helper

func SystemTest

func SystemTest(t BasicT, f SystemTestFunc, validators ...PreconditionValidator)

SystemTest delegates to the default helper

Types

type BasicT

type BasicT = testingTB

type InteropSystemTestFunc

type InteropSystemTestFunc func(t T, sys system.InteropSystem)

type PreconditionError

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

PreconditionError represents an error that occurs when a test precondition is not met

func (*PreconditionError) Error

func (e *PreconditionError) Error() string

func (*PreconditionError) Unwrap

func (e *PreconditionError) Unwrap() error

type PreconditionValidator

type PreconditionValidator func(t T, sys system.System) (context.Context, error)

type SystemTestFunc

type SystemTestFunc func(t T, sys system.System)

type T

type T interface {
	Context() context.Context
	WithContext(ctx context.Context) T
	Deadline() (deadline time.Time, ok bool)
	Parallel()
	Run(string, func(t T))
	// contains filtered or unexported methods
}

func NewT

func NewT(t testingTB) T

Jump to

Keyboard shortcuts

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