Documentation ¶
Index ¶
- type FakeClock
- func (clock *FakeClock) After(d time.Duration) <-chan time.Time
- func (clock *FakeClock) Increment(duration time.Duration)
- func (clock *FakeClock) IncrementBySeconds(seconds uint64)
- func (clock *FakeClock) NewTicker(d time.Duration) clock.Ticker
- func (clock *FakeClock) NewTimer(d time.Duration) clock.Timer
- func (clock *FakeClock) Now() time.Time
- func (clock *FakeClock) Since(t time.Time) time.Duration
- func (clock *FakeClock) Sleep(d time.Duration)
- func (clock *FakeClock) WaitForNWatchersAndIncrement(duration time.Duration, numWatchers int)
- func (clock *FakeClock) WaitForWatcherAndIncrement(duration time.Duration)
- func (clock *FakeClock) WatcherCount() int
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 (*FakeClock) IncrementBySeconds ¶
func (*FakeClock) WaitForNWatchersAndIncrement ¶
func (*FakeClock) WaitForWatcherAndIncrement ¶
func (*FakeClock) WatcherCount ¶
Click to show internal directories.
Click to hide internal directories.