testvectors

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Dec 12, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TestVector

type TestVector[I, O any] struct {
	Description string `json:"description"`
	Input       I      `json:"input"`
	Output      O      `json:"output"`
	Errors      bool   `json:"errors"`
}

TestVector is an individual test vector case

type TestVectors

type TestVectors[T, U any] struct {
	Description string             `json:"description"`
	Vectors     []TestVector[T, U] `json:"vectors"`
}

TestVectors are JSON files which are tested against to ensure interop with the specification

func LoadTestVectors

func LoadTestVectors[I, O any](path string) (TestVectors[I, O], error)

LoadTestVectors is for reading the vector at the given path

Jump to

Keyboard shortcuts

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