(t *testing.T)
| 104 | } |
| 105 | |
| 106 | func TestWithCleanFdsCacheThreshold(t *testing.T) { |
| 107 | db, err = Open(DefaultOptions, |
| 108 | WithDir("/tmp/nutsdb"), |
| 109 | WithCleanFdsCacheThreshold(0.5), |
| 110 | ) |
| 111 | |
| 112 | assert.NoError(t, err) |
| 113 | assert.Equal(t, db.opt.CleanFdsCacheThreshold, 0.5) |
| 114 | |
| 115 | err = db.Close() |
| 116 | assert.NoError(t, err) |
| 117 | } |
| 118 | |
| 119 | func TestWithErrorHandler(t *testing.T) { |
| 120 | db, err = Open(DefaultOptions, |
nothing calls this directly
no test coverage detected