Documentation
¶
Overview ¶
Package testenv isolates test binaries from the desk that starts them.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func EnterSandbox ¶
EnterSandbox prepares a private mount namespace, then enters a filesystem containing only system executables and this run's workspace. The caller must already be in fresh user, mount, PID and network namespaces (unshare -Urmpnf). No host home, runtime sockets, credentials, or other test runs are mounted. Namespace teardown, including on interruption, never unmounts the host's mounts.
func Setup ¶
func Setup()
Setup runs before m.Run, after any test-binary helper dispatch. Tests set their own identity with t.Setenv; child helpers keep that explicit identity. BEEKEEPER_TEST_* includes integration inputs and child-helper dispatch flags; clearing the latter would turn a helper into another test-suite run.
func WorkflowEnv ¶
func WorkflowEnv() []string
WorkflowEnv is an allowlist, deliberately independent of os.Environ. GitHub Git transport uses the fixture remote helper; Git has no system or user config. The private network namespace also blocks direct socket calls.
Types ¶
This section is empty.