(t *testing.T, fn func(t *testing.T, db *DB))
| 1462 | } |
| 1463 | |
| 1464 | func 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 | |
| 1473 | func TestDB_HintKeyValAndRAMIdxMode_RestartDB(t *testing.T) { |
| 1474 | opts := DefaultOptions |
no test coverage detected