Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/dnote/dnote
/ MustOpenDatabase
Function
MustOpenDatabase
pkg/cli/testutils/main.go:303–310 ·
view source on GitHub ↗
(t *testing.T, dbPath string)
Source
from the content-addressed store, hash-verified
301
}
302
303
func
MustOpenDatabase(t *testing.T, dbPath string) *database.DB {
304
db, err := database.Open(dbPath)
305
if
err != nil {
306
t.Fatal(errors.Wrap(err,
"opening database"
))
307
}
308
309
return
db
310
}
Callers
nothing calls this directly
Calls
1
Open
Function · 0.92
Tested by
no test coverage detected