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

testrunner

package
v2.5.64 Latest Latest
Warning

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

Go to latest
Published: Oct 22, 2026 License: MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Test

func Test(t *testing.T, filename string, f func(t *testing.T, input string) Spec)

Types

type Features

type Features map[string][]Spec

type Spec

type Spec struct {
	Name   string
	Input  string
	Error  *SpecError
	Tokens []Token
	AST    string
}

type SpecError added in v2.5.59

type SpecError struct {
	*gqlerror.Error `         yaml:",inline"`
	As              []string `yaml:"as"`
}

type Token

type Token struct {
	Kind   string
	Value  string
	Start  int
	End    int
	Line   int
	Column int
	Src    string
}

func (Token) String

func (t Token) String() string

Jump to

Keyboard shortcuts

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