Documentation ¶
Overview ¶
Package testutil contains common testing tasks like running dockerd.
Index ¶
- Variables
- func CleanupContext(t *testing.T)
- func ConfigureTracing() func(context.Context)
- func GenerateRandomAlphaOnlyString(n int) string
- func GetContext(t TestingT) context.Context
- func RunCommand(ctx context.Context, cmd string, args ...string) *icmd.Result
- func SetContext(t TestingT, ctx context.Context)
- func StartSpan(ctx context.Context, t TestingT) context.Context
- type HelperT
- type TestingT
Constants ¶
This section is empty.
Variables ¶
View Source
var DevZero io.Reader = devZero{}
DevZero acts like /dev/zero but in an OS-independent fashion.
Functions ¶
func CleanupContext ¶
func ConfigureTracing ¶
ConfigureTracing sets up an OTLP tracing exporter for use in tests.
func GenerateRandomAlphaOnlyString ¶
GenerateRandomAlphaOnlyString generates an alphabetical random string with length n.
func GetContext ¶
func SetContext ¶
Types ¶
Directories ¶
Path | Synopsis |
---|---|
Package daemon launches dockerd for testing purposes.
|
Package daemon launches dockerd for testing purposes. |
fixtures
|
|
Click to show internal directories.
Click to hide internal directories.