testutil

package
v0.0.0-...-6aa8790 Latest Latest
Warning

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

Go to latest
Published: Jan 9, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetTaskLog

func GetTaskLog(t TInterface, ctx context.Context, b logical.Backend, storage logical.Storage, uuid string) string

func GetTaskStatus

func GetTaskStatus(t TInterface, ctx context.Context, b logical.Backend, storage logical.Storage, uuid string) (string, string)

func ListTasks

func ListTasks(t TInterface, ctx context.Context, b logical.Backend, storage logical.Storage) []string

func WaitForTaskCompletion

func WaitForTaskCompletion(w io.Writer, t TInterface, ctx context.Context, b logical.Backend, storage logical.Storage, uuid string)

func WaitForTaskFailure

func WaitForTaskFailure(w io.Writer, t TInterface, ctx context.Context, b logical.Backend, storage logical.Storage, uuid string) string

func WaitForTaskSuccess

func WaitForTaskSuccess(w io.Writer, t TInterface, ctx context.Context, b logical.Backend, storage logical.Storage, uuid string)

Types

type TInterface

type TInterface interface {
	Cleanup(func())
	Error(args ...interface{})
	Errorf(format string, args ...interface{})
	Fail()
	FailNow()
	Failed() bool
	Fatal(args ...interface{})
	Fatalf(format string, args ...interface{})
	Helper()
	Log(args ...interface{})
	Logf(format string, args ...interface{})
	Name() string
	Parallel()
	Skip(args ...interface{})
	SkipNow()
	Skipf(format string, args ...interface{})
	Skipped() bool
	TempDir() string
}

TInterface covers most of the methods in the testing package's T.

Jump to

Keyboard shortcuts

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