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

Interface Clock

pkg/clock/clock.go:26–28  ·  view source on GitHub ↗

Clock is an interface to the standard library time. It is used to implement a real or a mock clock. The latter is used in tests.

Source from the content-addressed store, hash-verified

24// Clock is an interface to the standard library time.
25// It is used to implement a real or a mock clock. The latter is used in tests.
26type Clock interface {
27 Now() time.Time
28}
29
30type clock struct{}
31

Callers 8

TestRateLimitedTransportFunction · 0.65
InitSystemFunction · 0.65
TestLocalMigration4Function · 0.65
TestLocalMigration5Function · 0.65
TestRemoteMigration1Function · 0.65
migrateToV3Function · 0.65
UpdateNoteContentFunction · 0.65
UpdateNoteBookFunction · 0.65

Implementers 2

clockpkg/clock/clock.go
Mockpkg/clock/clock.go

Calls

no outgoing calls

Tested by

no test coverage detected