rt

package
v0.0.0-...-e0d0289 Latest Latest
Warning

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

Go to latest
Published: Aug 2, 2024 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ExpectKey

func ExpectKey[T comparable, V any](t *testing.T, m map[T]V, key T, value V)

func ExpectOutput

func ExpectOutput(t *testing.T, res apitype.ResourceV3, key string, value interface{})

func MultiContainerSetup

func MultiContainerSetup(t *testing.T) integration.ProgramTestOptions

func ResourceTest

func ResourceTest(t *testing.T, project string, baseOptions integration.ProgramTestOptions, validation func(ctx *ResourceContext))

func SingleContainerSetup

func SingleContainerSetup(t *testing.T) integration.ProgramTestOptions

func Validate

func Validate(ctx *ResourceContext, typ tokens.Type, name string, validator ResourceValidator)

Types

type ResourceContext

type ResourceContext struct {
	// contains filtered or unexported fields
}

type ResourceTestSetup

type ResourceTestSetup struct {
	Config map[string]string
	Setup  func(t *testing.T)
}

type ResourceValidator

type ResourceValidator func(t *testing.T, res apitype.ResourceV3)

Jump to

Keyboard shortcuts

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