package testutil

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

Index

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.11.0-ce-rc2+incompatible
Published
Nov 1, 2017
Platform
darwin/amd64
Imports
3 packages
Last checked
51 minutes ago

Tools for package owners.