testutil

package
v0.0.422 Latest Latest
Warning

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

Go to latest
Published: Aug 4, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Package testutil holds shared test helpers for satelle packages.

IsolateHome is the ergonomic path pointed at by the GlobalDir() test guard (sty_c36c211f): every test that resolves runtime state must set SATELLE_HOME so unit suites never mint key dirs under the developer's real ~/.satelle.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsolateHome

func IsolateHome(t testing.TB) string

IsolateHome pins SATELLE_HOME to a disposable temp dir for this test and returns that dir. Call at the start of any test (or package helper) that may open the home-keyed runtime plane. t.Setenv restores the prior value when the test ends.

Types

This section is empty.

Jump to

Keyboard shortcuts

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