testutil

package
v0.4.4 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2021 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AvailableStrategies added in v0.2.3

func AvailableStrategies() []string

func CleanUpEnv added in v0.4.1

func CleanUpEnv(t *testing.T)

func DefaultMatrix added in v0.2.3

func DefaultMatrix(t *testing.T, f func(*testing.T, bool, string))

func FailExit

func FailExit(t *testing.T, out []byte, err error)

func GetCmdList added in v0.2.3

func GetCmdList() ([]string, error)

Return sorted list of command names list

func InstallConfig added in v0.2.3

func InstallConfig(t *testing.T, filename string)

func RunVolt

func RunVolt(args ...string) ([]byte, error)

func SetUpEnv

func SetUpEnv(t *testing.T)

func SetUpRepos added in v0.2.3

func SetUpRepos(t *testing.T, testdataName string, rType lockjson.ReposType, reposPathList []pathutil.ReposPath, strategy string) func()

Set up $VOLTPATH after "volt get <repos>" but the same repository is cloned only at first time under testdata/voltpath/{testdataName}/repos/<repos>

func SuccessExit

func SuccessExit(t *testing.T, out []byte, err error)

func TestdataDir added in v0.2.3

func TestdataDir() string

Types

This section is empty.

Jump to

Keyboard shortcuts

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