(t *testing.T)
| 43 | } |
| 44 | |
| 45 | func TestWithHintKeyAndRAMIdxCacheSize(t *testing.T) { |
| 46 | InitOpt("", true) |
| 47 | db, err := Open( |
| 48 | opt, |
| 49 | WithHintKeyAndRAMIdxCacheSize(100), |
| 50 | ) |
| 51 | assert.NoError(t, err) |
| 52 | assert.Equal(t, 100, db.getHintKeyAndRAMIdxCacheSize()) |
| 53 | err = db.Close() |
| 54 | assert.NoError(t, err) |
| 55 | } |
| 56 | |
| 57 | func TestWithMaxWriteRecordCount(t *testing.T) { |
| 58 | InitOpt("", true) |
nothing calls this directly
no test coverage detected