operatortest

package
v0.99.0 Latest Latest
Warning

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

Go to latest
Published: Apr 22, 2024 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ConfigUnmarshalTest

type ConfigUnmarshalTest struct {
	Name      string
	Expect    any
	ExpectErr bool
}

ConfigUnmarshalTest is used for testing golden configs

type ConfigUnmarshalTests

type ConfigUnmarshalTests struct {
	DefaultConfig operator.Builder
	TestsFile     string
	Tests         []ConfigUnmarshalTest
}

ConfigUnmarshalTest is used for testing golden configs

func (ConfigUnmarshalTests) Run

func (c ConfigUnmarshalTests) Run(t *testing.T)

Run Unmarshals yaml files and compares them against the expected.

Jump to

Keyboard shortcuts

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