timetest

package
v0.16.1 Latest Latest
Warning

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

Go to latest
Published: Sep 30, 2019 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ResetAfter

func ResetAfter()

ResetAfter is just a test helper to simplify setting the After variable for a specific test and then running this cleanup method when done to return it to its normal state.

func UseNoAfter

func UseNoAfter()

UseNoAfter updates the After method to be a noop for tests. Callers should call ResetAfter() when they are done with their test.

func UseShortAfter

func UseShortAfter()

UseShortAfter updates the After method to expedite sleep times for tests. Callers should call ResetAfter() when they are done with their test.

Types

This section is empty.

Jump to

Keyboard shortcuts

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