Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
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.
26
type
Clock
interface
{
27
Now() time.Time
28
}
29
30
type
clock
struct
{}
Callers
15
TestRateLimitedTransport
Function · 0.65
InitSystem
Function · 0.65
TestLocalMigration4
Function · 0.65
TestLocalMigration5
Function · 0.65
TestRemoteMigration1
Function · 0.65
migrateToV3
Function · 0.65
UpdateNoteContent
Function · 0.65
UpdateNoteBook
Function · 0.65
LoginDB
Function · 0.65
Login
Function · 0.65
newRun
Function · 0.65
shouldCheckUpdate
Function · 0.65
Implementers
2
clock
pkg/clock/clock.go
Mock
pkg/clock/clock.go
Calls
no outgoing calls
Tested by
9
TestRateLimitedTransport
Function · 0.52
TestLocalMigration4
Function · 0.52
TestLocalMigration5
Function · 0.52
TestRemoteMigration1
Function · 0.52
TestLogout
Function · 0.52
TestResetPassword
Function · 0.52
TestAuth
Function · 0.52
TestTokenAuth
Function · 0.52
TestTimeAgo
Function · 0.52