testutil

package
v2.0.0-rc.6+incompatible Latest Latest
Warning

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

Go to latest
Published: Apr 16, 2018 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