testutils

package
v0.11.0 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

View Source
var TestEnvKey = stringKey("TEST")

Functions

func DefaultValidBundleMap

func DefaultValidBundleMap() (map[string]types.MetaBundle, error)

Types

type ValidatorTester

type ValidatorTester struct {
	*testing.T
	Val validator.Validator
	// contains filtered or unexported fields
}

func NewValidatorTester

func NewValidatorTester(t *testing.T, init validator.Initializer, opts ...ValidatorTesterOption) ValidatorTester

func (*ValidatorTester) Option

func (v *ValidatorTester) Option(opt ValidatorTesterOption)

func (*ValidatorTester) TestInvalidBundles

func (v *ValidatorTester) TestInvalidBundles(bundles map[string]types.MetaBundle)

func (*ValidatorTester) TestSingleBundle

func (v *ValidatorTester) TestSingleBundle(mb types.MetaBundle) validator.Result

func (*ValidatorTester) TestValidBundles

func (v *ValidatorTester) TestValidBundles(bundles map[string]types.MetaBundle)

type ValidatorTesterOption

type ValidatorTesterOption func(*ValidatorTester)

func ValidatorTesterLogger

func ValidatorTesterLogger(l logr.Logger) ValidatorTesterOption

func ValidatorTesterOCMClient

func ValidatorTesterOCMClient(ocm validator.OCMClient) ValidatorTesterOption

Jump to

Keyboard shortcuts

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