(t *testing.T)
| 55 | } |
| 56 | |
| 57 | func TestWithMaxWriteRecordCount(t *testing.T) { |
| 58 | InitOpt("", true) |
| 59 | db, err := Open( |
| 60 | opt, |
| 61 | WithMaxWriteRecordCount(100), |
| 62 | ) |
| 63 | assert.NoError(t, err) |
| 64 | assert.Equal(t, int64(100), db.getMaxWriteRecordCount()) |
| 65 | err = db.Close() |
| 66 | assert.NoError(t, err) |
| 67 | } |
| 68 | |
| 69 | func TestWithRWMode(t *testing.T) { |
| 70 | db, err = Open(DefaultOptions, |
nothing calls this directly
no test coverage detected