test

package
v0.0.0-...-6f0ee80 Latest Latest
Warning

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

Go to latest
Published: May 25, 2016 License: MPL-2.0 Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BenchmarkCustomSuite

func BenchmarkCustomSuite(path string)

func GatherTests

func GatherTests(directory string) (tests []string)

func RunBenchmark

func RunBenchmark(path string, b *testing.B)

func RunBenchmarkSuite

func RunBenchmarkSuite(directoryFromRoot string, b *testing.B)

func RunTest

func RunTest(path string) (result *spec.Result)

func RunTestSuite

func RunTestSuite(directoryFromRoot string, t *testing.T)

func TestCustomSuite

func TestCustomSuite(path string)

Types

type TritiumTest

type TritiumTest struct {
	Script       string
	Input        string
	Output       string
	EnvProto     []*TritiumTest_Hash
	ExportsProto []*TritiumTest_Hash
	Logs         []string
	Transformer  *tp.Transform
	Rrules       []*tp.RewriteRule
}

func NewTritiumTestFromFolder

func NewTritiumTestFromFolder(path string) (test *TritiumTest, err error)

func (*TritiumTest) Env

func (test *TritiumTest) Env() (env map[string]string)

func (*TritiumTest) Exports

func (test *TritiumTest) Exports() (exports [][]string)

func (*TritiumTest) SetEnv

func (test *TritiumTest) SetEnv(env map[string]string)

func (*TritiumTest) SetExports

func (test *TritiumTest) SetExports(exports [][]string)

func (*TritiumTest) WriteFolder

func (test *TritiumTest) WriteFolder(path string) (err error)

type TritiumTest_Hash

type TritiumTest_Hash struct {
	Key   string
	Value string
}

Jump to

Keyboard shortcuts

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