testtime

package
v0.0.0-...-69349f0 Latest Latest
Warning

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

Go to latest
Published: Feb 8, 2026 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Parse

func Parse(t *testing.T, layout, value string) time.Time

func SetTime

func SetTime(v *time.Time) func()

func SetTimeFunc

func SetTimeFunc(f func() time.Time) func()

Types

type Traveler

type Traveler struct {
	// contains filtered or unexported fields
}

func NewTraveler

func NewTraveler() *Traveler

func (*Traveler) Set

func (tv *Traveler) Set(v time.Time)

func (*Traveler) Teardown

func (tv *Traveler) Teardown()

Jump to

Keyboard shortcuts

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