config

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2020 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Assert

type Assert struct {
	Exist Exist `yaml:"exist"`
	Equal Equal `yaml:"equal"`
}

Assert contains different objects to be used for different assert operations. It is only intended that one assert type is used.

type Config

type Config struct {
	Sets   []string `yaml:"sets"`
	Tests  []Test   `yaml:"tests"`
	Values []string `yaml:"values"`
}

Config contains the overall tests and their configurations.

func NewConfig

func NewConfig() Config

NewConfig returns a new instance of Config.

type Equal

type Equal struct {
	Key   string `yaml:"key"`
	Value string `yaml:"value"`
}

Equal is an assert type used to check if a key contains the expected value.

type Exist

type Exist struct {
	Key string `yaml:"key"`
}

Exist is an assert type used to check if a key exist.

type Select added in v0.2.0

type Select struct {
	Kinds    []string `yaml:"kinds"`
	Files    []string `yaml:"files"`
	Versions []string `yaml:"versions"`
}

Select contains lists to be used to select manifests from different methods.

type Test

type Test struct {
	Asserts []Assert `yaml:"asserts"`
	Name    string   `yaml:"name"`
	Summary string   `yaml:"summary"`
	Sets    []string `yaml:"sets"`
	Select  Select   `yaml:"select"`
	Skip    bool     `yaml:"skip"`
	Values  []string `yaml:"values"`
}

Test contains test configurations.

func NewTest

func NewTest() Test

NewTest returns a new instance of Test.

Jump to

Keyboard shortcuts

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