conformance

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2026 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const (
	MaxSuiteCases         = 10_000
	MaxSuiteBytes         = int64(100 * 1024 * 1024)
	MaxManifestBytes      = int64(10 * 1024 * 1024)
	MaxResultDiagnostics  = 1_000
	CorpusDigestAlgorithm = "sha256-length-prefixed-v1"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Manifest

type Manifest struct {
	SuiteVersion string `json:"suiteVersion"`
	SpecVersion  string `json:"specVersion"`
	Cases        []struct {
		ID                  string   `json:"id"`
		Path                string   `json:"path"`
		Layer               string   `json:"layer"`
		ExpectedResult      string   `json:"expectedResult"`
		SupportedExtensions []string `json:"supportedExtensions"`
		ExpectedDiagnostic  *struct {
			Code string `json:"code"`
			Path string `json:"path"`
		} `json:"expectedDiagnostic"`
	} `json:"cases"`
}

type Runner

type Runner struct {
	// contains filtered or unexported fields
}

func NewRunner

func NewRunner(engine *validation.Engine) *Runner

func (*Runner) Run

func (r *Runner) Run(suiteArgument, requestedVersion string) (result.Suite, *validation.OperationalFailure)

Jump to

Keyboard shortcuts

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