goldenfile

package
v0.39.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

View Source
const (
	GoldenFilePath  = "test"
	ResultsFilename = "results.golden.json"
)

Variables

View Source
var (

	// Root folder of this project
	Root = filepath.Join(filepath.Dir(b), "../..")
)
View Source
var Update = flag.String("update", "", "name of test to update")

Functions

func FileExists

func FileExists(dirname, f string) bool

func ReadFile

func ReadFile(p string, name string) []byte

func ReadRootFile added in v0.37.0

func ReadRootFile(p string, name string) []byte

func WriteFile

func WriteFile(p string, content []byte, name string)

func WriteRootFile added in v0.37.0

func WriteRootFile(p string, content []byte, name string)

Types

This section is empty.

Jump to

Keyboard shortcuts

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