integration

package
v1.6.0 Latest Latest
Warning

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

Go to latest
Published: Jan 17, 2026 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type FakeClock

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

func NewFakeClock

func NewFakeClock(start time.Time) *FakeClock

func (*FakeClock) Add

func (c *FakeClock) Add(d time.Duration)

Add advances fake time and fires timers whose deadlines have passed

func (*FakeClock) After

func (c *FakeClock) After(d time.Duration) <-chan time.Time

After creates a timer that fires when fake time reaches now + d

func (*FakeClock) Now

func (c *FakeClock) Now() time.Time

Now just returns the current fake time

func (*FakeClock) Sleep

func (c *FakeClock) Sleep(d time.Duration)

Sleep simply waits on After(d)

func (*FakeClock) Tick

func (c *FakeClock) Tick(d time.Duration) func()

Tick automatically advances the fake clock every interval by calling Add(d).

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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