testutils

package module
v0.0.0-...-d5f45b0 Latest Latest
Warning

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

Go to latest
Published: Sep 25, 2020 License: Apache-2.0 Imports: 7 Imported by: 3

Documentation

Index

Constants

View Source
const (
	TestFixturesDir   = "test-fixtures"
	GoldenFileDirName = "snapshot"
	GoldenFileExt     = ".golden"
	GoldenFileDirPath = TestFixturesDir + string(filepath.Separator) + GoldenFileDirName
)

Variables

This section is empty.

Functions

func GetGoldenFileContents

func GetGoldenFileContents(t *testing.T) []byte

func GetGoldenFilePath

func GetGoldenFilePath(t *testing.T) string

func UpdateGoldenFileContents

func UpdateGoldenFileContents(t *testing.T, contents []byte)

Types

This section is empty.

Jump to

Keyboard shortcuts

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