testmode

package
v0.78.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2025 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Expensive

func Expensive(t TestingT)

Expensive marks the test as an expensive operation. Expensive tests only run when the environment variable RILL_RUNTIME_TEST_MODE=expensive is set. They will error if the environment variable is not set, unless the -short flag is used, in which case they are skipped.

func Mode

func Mode(t TestingT) string

Mode returns the current test mode set in the RILL_RUNTIME_TEST_MODE environment variable. Currently valid values are "" (default) and "expensive".

Types

type TestingT

type TestingT interface {
	SkipNow()
	FailNow()
	Errorf(format string, args ...any)
}

TestingT is an interface that matches *testing.T and *testing.B.

Jump to

Keyboard shortcuts

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