goldenfile

package
v0.38.0 Latest Latest
Warning

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

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

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

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

func WriteFile

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

func WriteRootFile

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