timecop

package
v0.159.0 Latest Latest
Warning

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

Go to latest
Published: Jul 23, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const BlazingFast = 100
View Source
const Freeze = freeze(0)

Freeze is a Travel TravelOption, and it instruct travel to freeze the time wherever it lands after the travelling..

View Source
const Unfreeze = unfreeze(0)

Unfreeze is a Travel TravelOption, and it instruct travel that after the time travelling, the flow of time should continue.

Variables

This section is empty.

Functions

func SetSpeed

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

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

Jump to

Keyboard shortcuts

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