timecop

package
v0.142.1 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2023 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.

func Unfreeze added in v0.123.0

func Unfreeze() TravelOption

Unfreeze instruct travel to unfreeze the time.

Jump to

Keyboard shortcuts

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