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

Function TestWithHintKeyAndRAMIdxCacheSize

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

Source from the content-addressed store, hash-verified

43}
44
45func 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
57func TestWithMaxWriteRecordCount(t *testing.T) {
58 InitOpt("", true)

Callers

nothing calls this directly

Calls 5

InitOptFunction · 0.85
OpenFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected