testenv

package
v3.3.1 Latest Latest
Warning

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

Go to latest
Published: Oct 8, 2019 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EnvForTest

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

EnvForTest manages the plugin test environment. It sets/resets XDG_CONFIG_HOME, makes/removes a temp objRoot.

func NewEnvForTest

func NewEnvForTest(t *testing.T) *EnvForTest

func (*EnvForTest) BuildExecPlugin

func (x *EnvForTest) BuildExecPlugin(g, v, k string)

func (*EnvForTest) BuildGoPlugin

func (x *EnvForTest) BuildGoPlugin(g, v, k string)

func (*EnvForTest) Reset

func (x *EnvForTest) Reset()

func (*EnvForTest) Set

func (x *EnvForTest) Set() *EnvForTest

Jump to

Keyboard shortcuts

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