fakeclock

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: May 18, 2018 License: Apache-2.0 Imports: 4 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(now time.Time) *FakeClock

func (*FakeClock) After

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

func (*FakeClock) Increment

func (clock *FakeClock) Increment(duration time.Duration)

func (*FakeClock) IncrementBySeconds

func (clock *FakeClock) IncrementBySeconds(seconds uint64)

func (*FakeClock) NewTicker

func (clock *FakeClock) NewTicker(d time.Duration) clock.Ticker

func (*FakeClock) NewTimer

func (clock *FakeClock) NewTimer(d time.Duration) clock.Timer

func (*FakeClock) Now

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

func (*FakeClock) Since

func (clock *FakeClock) Since(t time.Time) time.Duration

func (*FakeClock) Sleep

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

func (*FakeClock) WaitForNWatchersAndIncrement

func (clock *FakeClock) WaitForNWatchersAndIncrement(duration time.Duration, numWatchers int)

func (*FakeClock) WaitForWatcherAndIncrement

func (clock *FakeClock) WaitForWatcherAndIncrement(duration time.Duration)

func (*FakeClock) WatcherCount

func (clock *FakeClock) WatcherCount() int

Jump to

Keyboard shortcuts

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