Documentation ¶ Index ¶ func Check(t *testing.T, actual []byte, filename string) func Get(t *testing.T, actual []byte, filename string) []byte Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ func Check ¶ func Check(t *testing.T, actual []byte, filename string) Check is a test helper which checks if the actual return data matches the expected data. func Get ¶ func Get(t *testing.T, actual []byte, filename string) []byte Get returns the content of the specified .golden file. If the '-update' flag is set (e.g. `go test ./pkg/... -update`), the specified .golden file is updated with the current output, then the output is returned. Types ¶ This section is empty. Source Files ¶ View all Source files golden.go Click to show internal directories. Click to hide internal directories.