Documentation ¶
Index ¶
- func GoldenFile(t *testing.T) []byte
- func GoldenFileNamed(t *testing.T, filename string) []byte
- func SetUpFromFileContent(t *testing.T, filename string, content string) string
- func SetUpFromGoldenDir(t *testing.T) string
- func SetUpFromGoldenDirNamed(t *testing.T, testname string) string
- func SetUpFromGoldenFile(t *testing.T) string
- func SetUpFromGoldenFileNamed(t *testing.T, filename string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoldenFile ¶
GoldenFile reads the content of the golden file of the current test.
func GoldenFileNamed ¶
GoldenFileNamed reads the content of the given golden file.
func SetUpFromFileContent ¶
SetUpFromFileContent creates a temp file based on the given file content.
func SetUpFromGoldenDir ¶
SetUpFromGoldenDir populates a temp directory based on the given test name.
func SetUpFromGoldenDirNamed ¶
SetUpFromGoldenDir populates a temp directory based on the given golden dir name.
func SetUpFromGoldenFile ¶
SetUpFromGoldenFile creates a temp file based on the golden file of the current test. The file must exist in directory testdata/.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.