MCPcopy
hub / github.com/dnote/dnote / InitTestMemoryDB

Function InitTestMemoryDB

pkg/cli/database/testutils.go:57–59  ·  view source on GitHub ↗

InitTestMemoryDB initializes an in-memory test database with the default schema.

(t *testing.T)

Source from the content-addressed store, hash-verified

55
56// InitTestMemoryDB initializes an in-memory test database with the default schema.
57func InitTestMemoryDB(t *testing.T) *DB {
58 return InitTestMemoryDBRaw(t, "")
59}
60
61// InitTestFileDB initializes a file-based test database with the default schema.
62func InitTestFileDB(t *testing.T) (*DB, string) {

Callers 15

TestInitSystemKVFunction · 0.92
InitTestCtxFunction · 0.92
TestViewNoteFunction · 0.92
TestViewNoteContentOnlyFunction · 0.92
TestViewNoteInvalidRowIDFunction · 0.92
TestViewNoteNotFoundFunction · 0.92
TestListNotesFunction · 0.92
TestListBooksFunction · 0.92
TestGetLastSyncAtFunction · 0.92
TestGetLastMaxUSNFunction · 0.92
TestResolveLabelFunction · 0.92

Calls 1

InitTestMemoryDBRawFunction · 0.85

Tested by 15

TestInitSystemKVFunction · 0.74
TestViewNoteFunction · 0.74
TestViewNoteContentOnlyFunction · 0.74
TestViewNoteInvalidRowIDFunction · 0.74
TestViewNoteNotFoundFunction · 0.74
TestListNotesFunction · 0.74
TestListBooksFunction · 0.74
TestGetLastSyncAtFunction · 0.74
TestGetLastMaxUSNFunction · 0.74
TestResolveLabelFunction · 0.74
TestSyncDeleteNoteFunction · 0.74