Documentation
¶
Overview ¶
Package testenv provides environment isolation helpers for tests. This package intentionally has no dependencies on other internal packages to avoid import cycles.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SetDataDir ¶
SetDataDir sets ROBOREV_DATA_DIR to a temp directory to isolate tests from production ~/.roborev. This is preferred over setting HOME because ROBOREV_DATA_DIR takes precedence in config.DataDir(). Returns the temp directory path. Cleanup is automatic via t.Setenv.
Note: t.Setenv marks the test as incompatible with t.Parallel(), which is appropriate since environment variables are process-global state.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.