Documentation
¶
Overview ¶
Package testprocess provides subprocess helpers for tests that need clean package-level state.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RunInFreshProcess ¶
RunInFreshProcess reruns the current test in a new process gated by envName.
Use it for assertions over package-level sync.Once state: the parent process may already have decoded data through another test, while the subprocess starts with clean package globals. The function returns true in the subprocess, where the caller should run the assertion.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.