golden

package
v0.0.0-...-3b23420 Latest Latest
Warning

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

Go to latest
Published: Oct 3, 2023 License: GPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Check

func Check(t *testing.T, actual []byte, filename string)

Check is a test helper which checks if the actual return data matches the expected data.

func Get

func Get(t *testing.T, actual []byte, filename string) []byte

Get returns the content of the specified .golden file. If the '-update' flag is set (e.g. `go test ./pkg/... -update`), the specified .golden file is updated with the current output, then the output is returned.

Types

This section is empty.

Jump to

Keyboard shortcuts

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