suite

package
v1.13.2 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Register

func Register(c Case)

Register registers a test case.

Types

type Case

type Case interface {
	Setup(*testing.T) []framework.Option
	Run(*testing.T, context.Context)
}

Case is a test case for the integration test suite.

type NamedCase added in v1.13.0

type NamedCase struct {
	Case
	// contains filtered or unexported fields
}

NamedCase is a test case with a searchable name.

func All

func All(t *testing.T) []NamedCase

All returns all registered test cases. The returned slice is sorted by name.

func (NamedCase) Name added in v1.13.0

func (c NamedCase) Name() string

Name returns the name of the test case.

Directories

Path Synopsis
api

Jump to

Keyboard shortcuts

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