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

Method Now

pkg/clock/clock.go:27–27  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

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{}

Callers 15

TestRateLimitedTransportFunction · 0.65
InitSystemFunction · 0.65
TestLocalMigration4Function · 0.65
TestLocalMigration5Function · 0.65
TestRemoteMigration1Function · 0.65
migrateToV3Function · 0.65
UpdateNoteContentFunction · 0.65
UpdateNoteBookFunction · 0.65
LoginDBFunction · 0.65
LoginFunction · 0.65
newRunFunction · 0.65
shouldCheckUpdateFunction · 0.65

Implementers 2

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

Calls

no outgoing calls

Tested by 9

TestRateLimitedTransportFunction · 0.52
TestLocalMigration4Function · 0.52
TestLocalMigration5Function · 0.52
TestRemoteMigration1Function · 0.52
TestLogoutFunction · 0.52
TestResetPasswordFunction · 0.52
TestAuthFunction · 0.52
TestTokenAuthFunction · 0.52
TestTimeAgoFunction · 0.52