testutils

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: May 7, 2015 License: Apache-2.0 Imports: 3 Imported by: 0

README

testutils is a collection of utility functions to facilitate the writing of tests. It is used in various places by the Docker test suite.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func RandomString added in v1.1.0

func RandomString(length int) string

RandomString returns random string of specified length

func Timeout

func Timeout(t *testing.T, f func())

Timeout calls f and waits for 100ms for it to complete. If it doesn't, it causes the tests to fail. t must be a valid testing context.

Types

This section is empty.

Jump to

Keyboard shortcuts

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