Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Setup ¶ added in v1.10.0
func Setup()
Setup sets up the golden testing functionality for the package. It can be called instead of TestMain if a package wants to do multiple main function handling.
func Test ¶
Test checks the test output against the golden file where the path to the golden file is based on the test name; i.e. `testName.golden` within the `testdata` folder. If -golden-update was passed to "go test", it writes new golden files instead.
func TestAgainst ¶ added in v1.1.0
TestAgainst checks the test output against the golden file. If -golden-update was passed to "go test", it writes new golden files instead.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.