package fakeclock
import "code.cloudfoundry.org/clock/fakeclock"
Index ¶
- type FakeClock
- func NewFakeClock(now time.Time) *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
Types ¶
type FakeClock ¶
type FakeClock struct {
// contains filtered or unexported fields
}
func NewFakeClock ¶
func (*FakeClock) After ¶
func (*FakeClock) Increment ¶
func (*FakeClock) IncrementBySeconds ¶
func (*FakeClock) NewTicker ¶
func (*FakeClock) NewTimer ¶
func (*FakeClock) Now ¶
func (*FakeClock) Since ¶
func (*FakeClock) Sleep ¶
func (*FakeClock) WaitForNWatchersAndIncrement ¶
func (*FakeClock) WaitForWatcherAndIncrement ¶
func (*FakeClock) WatcherCount ¶
Source Files ¶
fake_clock.go fake_ticker.go fake_timer.go package.go
- Version
- v1.28.0 (latest)
- Published
- Jan 7, 2025
- Platform
- linux/amd64
- Imports
- 4 packages
- Last checked
- 2 months ago –
Tools for package owners.