Code
Hub
Workspaces
Connect
Indexed graphs
Engine
MCP
copy
Index your code
hub
/
github.com/dnote/dnote
/ NewMock
Function
NewMock
pkg/clock/clock.go:62–66 ·
view source on GitHub ↗
NewMock returns an instance of a mock clock
()
Source
from the content-addressed store, hash-verified
60
61
// NewMock returns an instance of a mock clock
62
func
NewMock() *Mock {
63
return
&Mock{
64
currentTime: time.Date(2009, time.November, 10, 23, 0, 0, 0, time.UTC),
65
}
66
}
Callers
15
TestUpdateNoteContent
Function · 0.92
TestUpdateNoteBook
Function · 0.92
InitTestCtx
Function · 0.92
InitTestCtxWithDB
Function · 0.92
InitTestCtxWithFileDB
Function · 0.92
TestGetNotes
Function · 0.92
TestGetNote
Function · 0.92
TestCreateNote
Function · 0.92
TestDeleteNote
Function · 0.92
TestUpdateNote
Function · 0.92
TestNotSupportedVersions
Function · 0.92
TestGetBooks
Function · 0.92
Calls
no outgoing calls
Tested by
15
TestUpdateNoteContent
Function · 0.74
TestUpdateNoteBook
Function · 0.74
TestGetNotes
Function · 0.74
TestGetNote
Function · 0.74
TestCreateNote
Function · 0.74
TestDeleteNote
Function · 0.74
TestUpdateNote
Function · 0.74
TestNotSupportedVersions
Function · 0.74
TestGetBooks
Function · 0.74
TestGetBooksByName
Function · 0.74
TestGetBook
Function · 0.74
TestGetBookNonOwner
Function · 0.74