testutil

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2017 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AllocTestURL

func AllocTestURL() string

AllocTestURL allocates a local URL for testing.

func WaitUntil

func WaitUntil(c *check.C, f CheckFunc)

WaitUntil repeatly evaluates f() for a period of time, util it returns true.

Types

type CheckFunc

type CheckFunc func(c *check.C) bool

CheckFunc is a condition checker that passed to WaitUntil. Its implementation may call c.Fatal() to abort the test, or c.Log() to add more information.

Jump to

Keyboard shortcuts

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