testutils

package
v1.4.2-0...-2a8a2d2 Latest Latest
Warning

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

Go to latest
Published: Mar 6, 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

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