testutil

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2026 License: BSD-3-Clause Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsolateHome

func IsolateHome(t *testing.T) string

IsolateHome points the home directory at a fresh temporary directory so tests never read or modify the real ~/.git-helper. It sets both HOME and USERPROFILE, since os.UserHomeDir reads HOME on Unix and USERPROFILE on Windows.

func WriteConfig

func WriteConfig(t *testing.T, home, content string)

WriteConfig writes content to <home>/.git-helper/config.yml.

Types

This section is empty.

Jump to

Keyboard shortcuts

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