package testutil

import "github.com/docker/cli/components/engine/internal/testutil"

Index

Variables

var DevZero io.Reader = devZero{}

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

Functions

func ErrorContains

func ErrorContains(t require.TestingT, err error, expectedError string, msgAndArgs ...interface{})

ErrorContains checks that the error is not nil, and contains the expected substring.

func GenerateRandomAlphaOnlyString

func GenerateRandomAlphaOnlyString(n int) string

GenerateRandomAlphaOnlyString generates an alphabetical random string with length n.

Source Files

helpers.go stringutils.go

Version
v17.12.0-ce+incompatible
Published
Dec 27, 2017
Platform
windows/amd64
Imports
4 packages
Last checked
32 minutes ago

Tools for package owners.