goldenfile

package
v2.42.0 Latest Latest
Warning

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

Go to latest
Published: Oct 6, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GoldenFile

type GoldenFile struct {
	// contains filtered or unexported fields
}

GoldenFile helps perform snapshot testing, to avoid long test payloads in test files.

func New

func New(basePath string, filePath string) *GoldenFile

func (*GoldenFile) Read

func (gf *GoldenFile) Read() ([]byte, error)

func (*GoldenFile) Update

func (gf *GoldenFile) Update(data []byte) error

Jump to

Keyboard shortcuts

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