Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Isolate ¶
Isolate provides a *testing.T integrated variant of WithIsolatedGlobals. It snapshots selected global mutable state and environment variables, then registers a t.Cleanup to restore them automatically. Safe to call multiple times in a test (last restore wins, executed LIFO by t.Cleanup). Use this at the top of tests that mutate modular.ConfigFeeders or tracked env vars so they can run with other tests in parallel.
func WithIsolatedGlobals ¶
func WithIsolatedGlobals(fn func())
WithIsolatedGlobals snapshots and restores selected global mutable state so the caller can safely run a test in parallel without leaking changes. It is intentionally minimal and can be extended as more global state is introduced.
Types ¶
This section is empty.