Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CompareFileWithFixture ¶
CompareFileWithFixture loads data from the outputFile and compares the content with a golden fixture.
func CompareWithFixture ¶
CompareWithFixture will compare output with a test fixture and allows to automatically update them by setting the UPDATE env var. If output is not a []byte or string, it will get serialized as yaml prior to the comparison. The fixtures are stored in $PWD/testdata/prefix${testName}.yaml
func WithExtension ¶
func WithExtension(extension string) option
func WithSubDir ¶
func WithSubDir(subDir string) option
func WithSuffix ¶
func WithSuffix(suffix string) option
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.