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

testutil

package
v0.2.55 Latest Latest
Warning

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

Go to latest
Published: Mar 31, 2026 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetTestHomeDir

func SetTestHomeDir(t *testing.T, dir string)

SetTestHomeDir sets the home directory for tests to work cross-platform. Both HOME (Unix) and USERPROFILE (Windows) are set so os.UserHomeDir() works everywhere. XDG_CONFIG_HOME is unset to ensure tests use the HOME/.config fallback path.

Types

This section is empty.

Jump to

Keyboard shortcuts

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