testrunner

package
v0.0.0-...-ee6c74f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 16, 2026 License: Apache-2.0 Imports: 18 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CompareWithFixture

func CompareWithFixture(t *testing.T, output interface{}, opts ...option)

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 RunTestHelmTemplate(t *testing.T, settingsPath string)

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL