systest

package
v1.11.2 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

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 SystemAcquirer added in v1.11.1

type SystemAcquirer func(t BasicT) (system.System, error)

SystemAcquirer attempts to create a System instance. Returns (nil, nil) to indicate this acquirer should be skipped (e.g., when prerequisites are not met). Any other result indicates this acquirer was selected and its result (success or failure) should be used.

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