Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertGolden ¶
func AssertGolden(t testing.TB, got []byte, opts *AssertGoldenOptions) bool
AssertGolden asserts that got matches the contents of the golden file. If the golden file does not exist or if the environment variable UPDATE_GOLDEN is set and not empty, it writes got to the golden file first. Golden files are places in testdata/golden/<test_name>.<suffix>
Types ¶
type AssertGoldenOptions ¶
Click to show internal directories.
Click to hide internal directories.