testprocess

package
v0.70.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package testprocess identifies Go test binaries at host-mutation boundaries. It deliberately links testing.Testing into production code because the Go runtime signal is what detects custom-named test executables reliably.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func IsGoTestBinary

func IsGoTestBinary(executable string, reportedByTesting bool) bool

IsGoTestBinary combines the Go runtime's authoritative test-mode signal with the conventional executable suffix. The runtime signal covers custom-named binaries produced with "go test -o"; the suffix remains a fail-closed backup when a test executable is inspected outside the usual test startup path.

func RefuseDaemonLifecycleMutation

func RefuseDaemonLifecycleMutation(operation string) error

RefuseDaemonLifecycleMutation rejects host daemon/service mutations from a Go test process. Callers use this both before orchestration can mutate files or receipts and at the lowest process/service primitive available. Tests that exercise the allowed path inject a no-op guard only into a private seam; there is deliberately no environment-variable or process-global bypass.

Types

This section is empty.

Jump to

Keyboard shortcuts

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