Help us shape the future of Go! Take the 2026 Go Developer Survey

testutils

package
v12.13.2 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FileExists

func FileExists(pathname string) (bool, error)

func MockVariable

func MockVariable[T any](p *T, v T) (reset func())

func RequireTestFeatures added in v12.13.0

func RequireTestFeatures(t *testing.T, requiredFeatures ...TestFeature)

RequireTestFeatures skips a test if not all the given TestFeature instances are enabled.

Types

type TestFeature added in v12.13.0

type TestFeature string
const (
	// TestFeatureDocker enables tests that exercise functionality that requires Docker or Podman.
	TestFeatureDocker TestFeature = "docker"

	// TestFeatureLXC enables tests that exercise functionality that requires LXC.
	TestFeatureLXC TestFeature = "lxc"
)

Jump to

Keyboard shortcuts

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