timecop

package
v0.117.1 Latest Latest
Warning

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

Go to latest
Published: Nov 10, 2022 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func SetSpeed added in v0.107.0

func SetSpeed(tb testing.TB, multiplier float64)

func Travel

func Travel[D time.Duration | time.Time](tb testing.TB, d D, tos ...TravelOption)

Types

type TravelOption added in v0.108.0

type TravelOption interface {
	// contains filtered or unexported methods
}

func Freeze added in v0.108.0

func Freeze() TravelOption

Freeze instruct travel to freeze the time until the first time reading on the clock.

Jump to

Keyboard shortcuts

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