fakeclock

package
v0.0.0-...-b61aaf9 Latest Latest
Warning

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

Go to latest
Published: Jan 21, 2016 License: Apache-2.0, Apache-2.0, BSD-2-Clause-Views, + 2 more Imports: 3 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) 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) 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