MCPcopy Index your code
hub / github.com/dnote/dnote / Mock

Struct Mock

pkg/clock/clock.go:37–40  ·  view source on GitHub ↗

Mock is a mock instance of clock

Source from the content-addressed store, hash-verified

35
36// Mock is a mock instance of clock
37type Mock struct {
38 mu sync.RWMutex
39 currentTime time.Time
40}
41
42// SetNow sets the current time for the mock clock
43func (c *Mock) SetNow(t time.Time) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected