record

package
v2.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2026 License: MIT Imports: 7 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package record stores what a conformance or corpus run actually produced, one entry per case, so that two checkouts can be compared output for output (tests/recdiff). It is the differential gate for changes that must not move observable behaviour: a suite's pass count can stay put while the bytes a case writes change, and only a recording sees that.

It is off unless GOXSLT_RECORD_DIR is set, and then writes, per suite, <dir>/<suite>.tsv with one "key<TAB>sha256<TAB>length" line per case, and the bytes under <dir>/obj/<sha256[:2]>/<sha256>. Identical outputs are stored once. Nothing here may change a result: it only reads what the runner already has.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Enabled

func Enabled() bool

Enabled reports whether GOXSLT_RECORD_DIR asks for a recording.

func Store

func Store(root, suite, key string, data []byte) error

Store is Write into an explicit directory.

func Write

func Write(suite, key string, data []byte)

Write records data as the output of case key in suite. A failure to write is fatal: a recording with holes would compare as cases gone missing.

Types

This section is empty.

Jump to

Keyboard shortcuts

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