goldens

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Oct 23, 2026 License: MIT Imports: 2 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 goldens lists the golden files of the conformance suite (fixtures/exports) and says how each one is rendered. The golden test and the conformance runner's format op share it, so the two cannot drift apart.

Index

Constants

This section is empty.

Variables

View Source
var Transcripts = []string{"escapes", "long-utterances", "multi-renamed", "no-labels", "one-speaker", "over-hour", "translated"}

Transcripts are the transcript fixtures (fixtures/transcripts, without .json).

Functions

func Render

func Render(g Golden, body []byte) (string, error)

Render renders the golden from the body of its transcript fixture.

Types

type Golden

type Golden struct {
	// File is the name under fixtures/exports.
	File string
	// Transcript is the fixture under fixtures/transcripts, without .json.
	Transcript string
	// Language is "" for the original.
	Language string
	// contains filtered or unexported fields
}

Golden is one golden file and how to produce it.

func All

func All() []Golden

All lists every golden from the naming scheme: <transcript>.<variant>[.<language>].<ext>.

Jump to

Keyboard shortcuts

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