goldentest

package
v0.8.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 Test

type Test struct {
	// Pos is the YAML file location where this object started.
	Pos model.ConfigPos `yaml:"-"`

	Inputs []*VarValue `yaml:"inputs"`
}

Test represents a parsed test.yaml describing test configs.

func (*Test) UnmarshalYAML

func (t *Test) UnmarshalYAML(n *yaml.Node) error

UnmarshalYAML implements yaml.Unmarshaler.

func (*Test) Upgrade

func (t *Test) Upgrade(ctx context.Context) (model.ValidatorUpgrader, error)

Upgrade implements model.ValidatorUpgrader.

func (*Test) Validate

func (t *Test) Validate() error

Validate implements model.Validator.

type VarValue added in v0.5.0

type VarValue struct {
	// Pos is the YAML file location where this object started.
	Pos model.ConfigPos `yaml:"-"`

	Name  model.String `yaml:"name"`
	Value model.String `yaml:"value"`
}

VarValue represents one of the parsed "input" fields from the inputs.yaml file.

func (*VarValue) UnmarshalYAML added in v0.5.0

func (i *VarValue) UnmarshalYAML(n *yaml.Node) error

UnmarshalYAML implements yaml.Unmarshaler.

func (*VarValue) Validate added in v0.5.0

func (i *VarValue) Validate() error

Jump to

Keyboard shortcuts

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