clock: code.cloudfoundry.org/clock/fakeclock Index | Files

package fakeclock

import "code.cloudfoundry.org/clock/fakeclock"

Index

Package Files

fake_clock.go fake_ticker.go fake_timer.go package.go

type FakeClock Uses

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

func NewFakeClock Uses

func NewFakeClock(now time.Time) *FakeClock

func (*FakeClock) After Uses

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

func (*FakeClock) Increment Uses

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

func (*FakeClock) IncrementBySeconds Uses

func (clock *FakeClock) IncrementBySeconds(seconds uint64)

func (*FakeClock) NewTicker Uses

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

func (*FakeClock) NewTimer Uses

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

func (*FakeClock) Now Uses

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

func (*FakeClock) Since Uses

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

func (*FakeClock) Sleep Uses

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

func (*FakeClock) WaitForNWatchersAndIncrement Uses

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

func (*FakeClock) WaitForWatcherAndIncrement Uses

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

func (*FakeClock) WatcherCount Uses

func (clock *FakeClock) WatcherCount() int

Package fakeclock imports 4 packages (graph) and is imported by 6 packages. Updated 2018-05-19. Refresh now. Tools for package owners.