testutils

package
v12.13.0 Latest Latest
Warning

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

Go to latest
Published: Jul 8, 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