suite

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, ts TestSuite)

Run runs tests registered in the test suite

Types

type SetUpFunc

type SetUpFunc func() error

SetUpFunc sets up provider-specific resource in the test suite

type ShouldSkipTestFunc

type ShouldSkipTestFunc func(string) bool

ShouldSkipTestFunc determines whether the test suite should skip certain tests

type TeardownFunc

type TeardownFunc func() error

TeardownFunc tears down provider-specific resources from the test suite

type TestFunc

type TestFunc func(*testing.T)

TestFunc defines the test function in a test case

type TestSkipper

type TestSkipper interface {
	ShouldSkipTest(string) bool
}

TestSkipper allows providers to skip certain tests

type TestSuite

type TestSuite interface {
	Setup(t *testing.T)
	Teardown()
}

TestSuite contains methods that defines the lifecycle of a test suite

Jump to

Keyboard shortcuts

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