fixtures

package
v2.16.4 Latest Latest
Warning

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

Go to latest
Published: Apr 3, 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 DockerConfig deprecated

type DockerConfig struct {
	Debug bool
	Image string
}

DockerConfig was used to run fixture tests locally using "go test".

Deprecated: use "bblfsh-sdk test"

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
	Docker   DockerConfig

	// 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