Documentation ¶
Overview ¶
Package testutils provides general testing utilities.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareWithGolden ¶
CompareWithGolden check if a file is the same as golden file. If it is not it produces a pretty diff.
func UpdateGoldenFile ¶
UpdateGoldenFile updates a golden file with new contents if the new contents are actually different from what is already there. It returns whether or not the overwrite was performed (i.e. the desired content was different than actual).
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.