testutil

package
v1.4.2-0...-ea579a6 Latest Latest
Warning

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

Go to latest
Published: Apr 15, 2018 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

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 ErrorContains

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

ErrorContains checks that the error is not nil, and contains the expected substring. Deprecated: use assert.Assert(t, cmp.ErrorContains(err, expected))

func GenerateRandomAlphaOnlyString

func GenerateRandomAlphaOnlyString(n int) string

GenerateRandomAlphaOnlyString generates an alphabetical random string with length n.

Types

This section is empty.

Jump to

Keyboard shortcuts

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