MCPcopy Create free account
hub / github.com/nutsdb/nutsdb / withRAMIdxDB

Function withRAMIdxDB

db_test.go:1464–1471  ·  view source on GitHub ↗
(t *testing.T, fn func(t *testing.T, db *DB))

Source from the content-addressed store, hash-verified

1462}
1463
1464func withRAMIdxDB(t *testing.T, fn func(t *testing.T, db *DB)) {
1465 tmpdir, _ := os.MkdirTemp("", "nutsdb")
1466 opt := DefaultOptions
1467 opt.Dir = tmpdir
1468 opt.EntryIdxMode = HintKeyAndRAMIdxMode
1469
1470 withDBOption(t, opt, fn)
1471}
1472
1473func TestDB_HintKeyValAndRAMIdxMode_RestartDB(t *testing.T) {
1474 opts := DefaultOptions

Callers 2

TestTx_CommittedStatusFunction · 0.85

Calls 1

withDBOptionFunction · 0.85

Tested by

no test coverage detected