package testutil

import "github.com/docker/docker/testutil"

Package testutil contains common testing tasks like running dockerd.

Index

Variables

var DevZero io.Reader = devZero{}

DevZero acts like /dev/zero but in an OS-independent fashion.

Functions

func GenerateRandomAlphaOnlyString

func GenerateRandomAlphaOnlyString(n int) string

GenerateRandomAlphaOnlyString generates an alphabetical random string with length n.

Types

type HelperT

type HelperT interface {
	Helper()
}

HelperT is a subset of testing.T that implements the Helper function

Source Files

doc.go helper.go helpers.go stringutils.go

Directories

PathSynopsis
testutil/daemonPackage daemon launches dockerd for testing purposes.
testutil/environment
testutil/fakecontext
testutil/fakegit
testutil/fakestorage
testutil/fixtures
testutil/fixtures/load
testutil/fixtures/plugin
testutil/fixtures/plugin/basic
testutil/registry
testutil/request
Version
v20.10.7+incompatible
Published
Jun 1, 2021
Platform
js/wasm
Imports
2 packages
Last checked
1 minute ago

Tools for package owners.