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

Function TestWithCleanFdsCacheThreshold

options_test.go:106–117  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

104}
105
106func 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
119func TestWithErrorHandler(t *testing.T) {
120 db, err = Open(DefaultOptions,

Callers

nothing calls this directly

Calls 4

OpenFunction · 0.85
WithDirFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected