dsl

package
v1.335.0 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2026 License: AGPL-3.0 Imports: 4 Imported by: 1 module, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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