runtime

package
v0.0.0-...-5c99f88 Latest Latest
Warning

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

Go to latest
Published: Jun 14, 2019 License: Apache-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// MaxTestIDLength is the maximum length allowed for testID.
	MaxTestIDLength = 30
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Instance

type Instance struct {
	// contains filtered or unexported fields
}

Instance for the test environment.

func New

func New() *Instance

New returns a new runtime instance.

func (*Instance) GetContext

func (d *Instance) GetContext(t testing.TB) context.Instance

GetContext resets and returns the environment. Should be called exactly once per test.

func (*Instance) Run

func (d *Instance) Run(testID string, m *testing.M) (int, error)

Run is a helper for executing test main with appropriate resource allocation/doCleanup steps. It allows us to do post-run doCleanup, and flag parsing.

Jump to

Keyboard shortcuts

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