Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Golden ¶
type Golden interface { // AssertGolden compares the actual output of a function with the expected output. // Update the golden by passing the -update flag to the test. AssertGolden(t *testing.T, goldenFile string, actual interface{}, msgsAndArgs ...interface{}) }
Golden tests are used to compare the actual output of a function with the expected output.
Click to show internal directories.
Click to hide internal directories.