suite

package
v0.0.0-...-949823d Latest Latest
Warning

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

Go to latest
Published: Nov 10, 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

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

func (c NamedCase) Name() string

Name returns the name of the test case.

Directories

Path Synopsis
api
ha
api

Jump to

Keyboard shortcuts

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