testutil

package
v0.9.0 Latest Latest
Warning

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

Go to latest
Published: Nov 16, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testutil provides shared helpers for isolated test fixtures. Production code must not depend on this package.

Index

Constants

View Source
const RequireSymlinksEnv = "CONTROL_TEST_REQUIRE_SYMLINKS"

RequireSymlinksEnv declares that the test runner has been provisioned for symbolic-link creation. It is not inferred from CI or administrator status.

Variables

This section is empty.

Functions

func Symlink(t testing.TB, target, link string)

Symlink creates a fixture link or ends the current test. Unprovisioned environments skip only recognized missing-capability errors; unexpected errors always fail. A true RequireSymlinksEnv makes every creation error fail. No privileges, Developer Mode or filesystem settings are changed.

Types

This section is empty.

Jump to

Keyboard shortcuts

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