goldenfile

package
v0.0.0-...-d6ceb4e Latest Latest
Warning

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

Go to latest
Published: Apr 30, 2024 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run(t *testing.T, testDataDirectory string, createOperations CreateOperationsCallback)

Types

type CreateOperationsCallback

type CreateOperationsCallback func([]byte, generators.Options, config.Config) (resource.Operations, error)

type Match

type Match struct {
	Type     deepcomp.MatchType
	Name     string
	Exclude  []string // list of keys
	Resource interface{}
}

type SubTest

type SubTest struct {
	ApiVersion string
	Kind       string
	Name       string
	Operation  string
	Match      []Match
}

func (SubTest) String

func (m SubTest) String() string

type TestCase

type TestCase struct {
	TestConfig testCaseConfig
	Config     config.Config
	Options    generators.Options // deprecated
	Existing   []json.RawMessage
	Error      *string
	Tests      []SubTest
}

Jump to

Keyboard shortcuts

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