avrotestdata

package
v0.4.5 Latest Latest
Warning

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

Go to latest
Published: Apr 12, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Load

func Load(dir string) (map[string]Test, error)

Types

type Subtest

type Subtest struct {
	TestName    string            `json:"testName"`
	InData      json.RawMessage   `json:"inData"`
	OutData     json.RawMessage   `json:"outData"`
	ExpectError map[string]string `json:"expectError"`
}

type Test

type Test struct {
	TestName      string             `json:"testName"`
	InSchema      json.RawMessage    `json:"inSchema"`
	OutSchema     json.RawMessage    `json:"outSchema"`
	ExtraSchemas  []json.RawMessage  `json:"extraSchemas"`
	GoType        string             `json:"goType"`
	GoTypeBody    string             `json:"goTypeBody"`
	GenerateError string             `json:"generateError"`
	Subtests      map[string]Subtest `json:"subtests"`
	OtherTests    string             `json:"otherTests"`
}

Jump to

Keyboard shortcuts

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