Documentation ¶
Overview ¶
Package testutils provides common utilities for unit tests. The package should not be imported from appliation code, only from unit tests.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func AssertGolden ¶
AssertGolden checks that actual matches the contents of a golden file. The golden file is updated if -test.update-golden is set.
func SnapshotJSONMap ¶
SnapshotJSONMap takes a snapshot of a map where each value is json encoded. The values are pretty printed to a yaml output.
func SnapshotStringMap ¶
SnapshotStringMap takes a snapshot of m and encodes the result as json.
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.