Documentation
¶
Overview ¶
Package testevidence is the opt-in producer half of retained test evidence (LPCV-V0-055, decision 0218): a provider run with --retain writes its exact stdout document into the one location testvaliditydoc.Discover reads.
Index ¶
Constants ¶
const MaxRetained = 32
MaxRetained bounds how many documents one producer keeps.
Variables ¶
This section is empty.
Functions ¶
func Retain ¶
Retain atomically writes document as <producer>-<unix-nanos>-<hex>.json under testvaliditydoc.EvidenceDirectory of worktree, creating missing directories 0700 and the file 0600, refusing a symlinked or non-directory component, then prunes that directory to the producer's newest MaxRetained names. It returns the retained file name; a document its own prune removed is a failure, never a retained name.
Types ¶
This section is empty.