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

fixtures

package
v3.3.2 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2019 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

View Source
const Dir = "fixtures"

Variables

This section is empty.

Functions

This section is empty.

Types

type SemanticConfig

type SemanticConfig struct {
	// BlacklistTypes is a list of types that should not appear in semantic UAST.
	// Used to test if all cases of a specific native AST type were converted to semantic UAST.
	BlacklistTypes []string
}

type Suite

type Suite struct {
	Lang string
	Ext  string // with dot
	Path string

	UpdateNative      bool // update native ASTs in fixtures to ones produced by driver
	UpdateUAST        bool // update UASTs in fixtures to ones produced by driver
	WriteViewerJSON   bool // write JSON compatible with uast-viewer
	WritePreprocessed bool // write a preprocessed UAST for fixtures

	NewDriver  func() driver.Native
	Transforms driver.Transforms

	BenchName string // fixture name to benchmark (with no extension)

	Semantic SemanticConfig

	// VerifyTokens checks that token and positional info matches.
	// Executed after the preprocessing stage (in annotated mode).
	VerifyTokens []positioner.VerifyToken
}

func (*Suite) RunBenchmarks

func (s *Suite) RunBenchmarks(b *testing.B)

func (*Suite) RunTests

func (s *Suite) RunTests(t *testing.T)

Jump to

Keyboard shortcuts

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