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

Method SetNow

pkg/clock/clock.go:43–47  ·  view source on GitHub ↗

SetNow sets the current time for the mock clock

(t time.Time)

Source from the content-addressed store, hash-verified

41
42// SetNow sets the current time for the mock clock
43func (c *Mock) SetNow(t time.Time) {
44 c.mu.Lock()
45 defer c.mu.Unlock()
46 c.currentTime = t
47}
48
49// Now returns the current time
50func (c *Mock) Now() time.Time {

Callers 4

TestUpdateNoteContentFunction · 0.95
TestUpdateNoteBookFunction · 0.95
TestCreateNoteFunction · 0.95
setupTestServerFunction · 0.95

Calls

no outgoing calls

Tested by 3

TestUpdateNoteContentFunction · 0.76
TestUpdateNoteBookFunction · 0.76
TestCreateNoteFunction · 0.76