Documentation
¶
Overview ¶
The testing package contains utilities for autotests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GoldenEqual ¶
GoldenEqual compares the bytes of the provided output with the contents of the golden file for a exact match.
When running go test with the -update flag, the contents of golden-files will be overwritten with the provided contents of output, creating the testdata/ directory if it does not exist.
Check TestGoldenEqual in testing_test.go and testdata/TestGoldenEqual.golden for example usage.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.