testevidence

package
v0.7.0 Latest Latest
Warning

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

Go to latest
Published: Sep 23, 2026 License: AGPL-3.0, AGPL-3.0-or-later Imports: 12 Imported by: 0

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

View Source
const MaxRetained = 32

MaxRetained bounds how many documents one producer keeps.

Variables

This section is empty.

Functions

func Retain

func Retain(worktree, producer string, document []byte) (string, error)

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.

Jump to

Keyboard shortcuts

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