Help us shape the future of Go! Take the 2026 Go Developer Survey

dsl

package
v1.321.0 Latest Latest
Warning

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

Go to latest
Published: Oct 27, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ValidateTestDefinition

func ValidateTestDefinition(def TestDefinition) error

Types

type AssertionDefinition

type AssertionDefinition struct {
	ID        string         `json:"id"               yaml:"id"`
	Validator string         `json:"validator"        yaml:"validator"`
	Input     string         `json:"input"            yaml:"input"`
	Params    map[string]any `json:"params,omitempty" yaml:"params,omitempty"`
}

type EvidenceBinding

type EvidenceBinding struct {
	From string `json:"from" yaml:"from"`
}

type NormativeReference

type NormativeReference struct {
	Title   string `json:"title"             yaml:"title"`
	URL     string `json:"url,omitempty"     yaml:"url,omitempty"`
	Section string `json:"section,omitempty" yaml:"section,omitempty"`
}

type Source

type Source struct {
	Path string `json:"path,omitempty" yaml:"path,omitempty"`
}

type Suite

type Suite struct {
	SUT     string `json:"sut"               yaml:"sut"`
	Role    string `json:"role"              yaml:"role"`
	Section string `json:"section,omitempty" yaml:"section,omitempty"`
}

type TestDefinition

type TestDefinition struct {
	ID                  string                     `json:"id"                   yaml:"id"`
	Title               string                     `json:"title,omitempty"      yaml:"title,omitempty"`
	Source              Source                     `json:"source,omitempty"     yaml:"source,omitempty"`
	Suite               Suite                      `json:"suite"                yaml:"suite"`
	Applicability       map[string]any             `json:"applicability"        yaml:"applicability"`
	NormativeReferences []NormativeReference       `json:"normative_references" yaml:"normative_references"`
	Evidence            map[string]EvidenceBinding `json:"evidence"             yaml:"evidence"`
	Assertions          []AssertionDefinition      `json:"assertions"           yaml:"assertions"`
	Verdict             VerdictPolicy              `json:"verdict"              yaml:"verdict"`
}

func Parse

func Parse(data []byte) (*TestDefinition, error)

func ParseFile

func ParseFile(path string) (*TestDefinition, error)

type VerdictPolicy

type VerdictPolicy struct {
	PassWhen string `json:"pass_when" yaml:"pass_when"`
}

Jump to

Keyboard shortcuts

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