MCPcopy
hub / github.com/dropbox/godropbox / MockClock

Struct MockClock

time2/mock_clock.go:36–41  ·  view source on GitHub ↗

A fake clock useful for testing timing.

Source from the content-addressed store, hash-verified

34
35// A fake clock useful for testing timing.
36type MockClock struct {
37 mutex sync.Mutex
38 wakeups tHeap
39 now time.Time
40 logFunc func(format string, args ...interface{})
41}
42
43func NewMockClock(now time.Time) *MockClock {
44 c := &MockClock{}

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected