testenv

package
v0.16.7 Latest Latest
Warning

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

Go to latest
Published: Sep 8, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package testenv provides consistent process-environment isolation for tests.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DirLink(t testing.TB, kind, target, link string)

DirLink creates an actual directory symlink or Windows junction for a test. Junction tests run without the privilege required to create Windows symlinks.

func RunWithWingmanHome

func RunWithWingmanHome(run func() int) int

RunWithWingmanHome runs a package test suite with isolated Wingman state.

func UserHome

func UserHome(t testing.TB) string

UserHome gives a test an empty, isolated operating-system home directory.

func WingmanHome

func WingmanHome(t testing.TB) string

WingmanHome gives a test an empty, isolated WINGMAN_HOME directory.

Types

This section is empty.

Jump to

Keyboard shortcuts

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