Documentation
¶
Index ¶
- func CompareWithFixture(t *testing.T, output interface{}, opts ...option)
- func RunTestHelmTemplate(t *testing.T, settingsPath string)
- func WithExtension(extension string) option
- func WithGoldenDir(goldenDir string) option
- func WithPrefix(prefix string) option
- func WithSubDir(subDir string) option
- func WithSuffix(suffix string) option
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 testdata/prefix${testName}${suffix}${extension}
func RunTestHelmTemplate ¶
func WithExtension ¶
func WithExtension(extension string) option
func WithGoldenDir ¶
func WithGoldenDir(goldenDir string) option
func WithPrefix ¶
func WithPrefix(prefix 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.