Documentation ¶
Index ¶
- func ContainerBackendFromEnv(t *testing.T) containerbackend.ContainerBackend
- func Execute(t *testing.T, dir string) error
- func ExecuteWithOptions(t *testing.T, dir string, opts ...executor.Option) error
- func ExecuteWithOptionsNew(t *testing.T, dir string, opts ...executor.Option) error
- func ExecuteWithOptionsNewContext(ctx context.Context, t *testing.T, dir string, opts ...executor.Option) error
- func GetBasicContainerInstance(t *testing.T, image string) *any.Any
- func NeedsContainerization(t *testing.T)
- func RestoreDirLater(t *testing.T)
- func TasksFromJSON(t *testing.T, jsonBytes []byte) (result []*api.Task)
- func TasksToJSON(t *testing.T, tasks []*api.Task) []byte
- func TempChdir(t *testing.T)
- func TempChdirPopulatedWith(t *testing.T, sourceDir string)
- func TempDir(t *testing.T) string
- func TempDirPopulatedWith(t *testing.T, sourceDir string) string
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func ContainerBackendFromEnv ¶ added in v0.17.0
func ContainerBackendFromEnv(t *testing.T) containerbackend.ContainerBackend
func ExecuteWithOptions ¶ added in v0.3.0
func ExecuteWithOptionsNew ¶ added in v0.16.0
ExecuteWithOptionsNew is the same thing as ExecuteWithOptions, but uses the new in-house parser.
func ExecuteWithOptionsNewContext ¶ added in v0.53.0
func ExecuteWithOptionsNewContext(ctx context.Context, t *testing.T, dir string, opts ...executor.Option) error
ExecuteWithOptionsNewContext is the same thing as ExecuteWithOptionsNew, but allows the caller to set a context.
func NeedsContainerization ¶ added in v0.128.0
NeedsContainerization skips the test when running on CI, but no container backend configured.
This is needed to prevent failures on platforms without containerization support.
func RestoreDirLater ¶ added in v0.3.0
func TasksFromJSON ¶ added in v0.8.0
func TempChdirPopulatedWith ¶ added in v0.3.0
TempChdirPopulatedWith creates a temporary per-test directory filled with sourceDir contents and switches to it.
func TempDir ¶
tempDir supplements an alternative to TB.TempDir()[1], which is only available in 1.15. [1]: https://github.com/golang/go/issues/35998
Types ¶
This section is empty.