testutil

package
v0.6.3-rc1 Latest Latest
Warning

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

Go to latest
Published: Sep 14, 2020 License: MPL-2.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Execute added in v0.3.0

func Execute(t *testing.T, dir string) error

func ExecuteWithOptions added in v0.3.0

func ExecuteWithOptions(t *testing.T, dir string, opts ...executor.Option) error

func FetchedImage

func FetchedImage(t *testing.T, image string) string

func GetBasicContainerInstance

func GetBasicContainerInstance(t *testing.T, image string) *any.Any

func RestoreDirLater added in v0.3.0

func RestoreDirLater(t *testing.T)

func TasksToJSON added in v0.7.0

func TasksToJSON(t *testing.T, tasks []*api.Task) []byte

func TempChdir

func TempChdir(t *testing.T)

TempChdir switches to a temporary per-test directory.

func TempChdirPopulatedWith added in v0.3.0

func TempChdirPopulatedWith(t *testing.T, sourceDir string)

TempChdirPopulatedWith creates a temporary per-test directory filled with sourceDir contents and switches to it.

func TempDir

func TempDir(t *testing.T) string

tempDir supplements an alternative to TB.TempDir()[1], which is only available in 1.15. [1]: https://github.com/golang/go/issues/35998

func TempDirPopulatedWith added in v0.3.0

func TempDirPopulatedWith(t *testing.T, sourceDir string) string

TempChdirPopulatedWith creates a temporary per-test directory filled with sourceDir contents and switches to it.

Types

This section is empty.

Jump to

Keyboard shortcuts

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