fixtures

package
v2.4.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

View Source
const Dir = "fixtures"

Variables

This section is empty.

Functions

This section is empty.

Types

type DockerConfig

type DockerConfig struct {
	Debug bool
	Image string
}

type SemanticConfig

type SemanticConfig struct {
	// BlacklistTypes is a list og 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
	Docker   DockerConfig
}

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