testprocess

package
v0.2.17 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 30, 2026 License: MIT Imports: 7 Imported by: 0

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

func RunInFreshProcess(t testing.TB, envName string) bool

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL