Documentation
¶
Overview ¶
Package testenv makes a test binary hermetic: HOME, the ledger, the asks and run dirs under one temp root, the developer's git config and shell environment ignored. It imports nothing from this module, so any package's tests may use it; cmd/f10's tests check its paths against the real ones.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var Cleared = []string{
"XDG_CONFIG_HOME", "F10_STATE_DIR", "F10_USER_DIR", "CLAUDE_CONFIG_DIR", "GH_CONFIG_DIR", "GLAB_CONFIG_DIR",
"F10_DRIVE_FILE", "F10_AGENT_MODEL", "F10_AGENT_VIA", "F10_AGENT_SESSION",
"F10_SESSION_ID", "CLAUDE_CODE_SESSION_ID", "CLAUDECODE",
"HERDR_ENV", "HERDR_WORKSPACE_ID",
"F10_ROOTS", "F10_STATE_TTL", "F10_STATE_DEBUG",
"F10_PLUGIN_ROOT", "CLAUDE_PLUGIN_ROOT",
"F10_STANDUP_RECORD", "F10_BOARD_RECORD", "F10_STATUS_GLYPHS",
"XDG_RUNTIME_DIR",
}
Cleared is the environment the developer's shell may set, which would otherwise leak into the tests. The dir overrides among it are cleared, not pinned, so they follow HOME and a test that moves HOME moves them too.
var Root string
Root holds every user-level dir for the run, so a test that sets nothing still never reads or writes the developer's own HOME.
Functions ¶
Types ¶
This section is empty.