MCPcopy Index your code
hub / github.com/nutsdb/nutsdb / TestWithNodeNum

Function TestWithNodeNum

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

Source from the content-addressed store, hash-verified

7)
8
9func TestWithNodeNum(t *testing.T) {
10 InitOpt("", true)
11 db, err := Open(
12 opt,
13 WithNodeNum(1011),
14 )
15 assert.NoError(t, err)
16 assert.Equal(t, int64(1011), db.opt.NodeNum)
17 err = db.Close()
18 assert.NoError(t, err)
19}
20
21func TestWithMaxBatchCount(t *testing.T) {
22 InitOpt("", true)

Callers

nothing calls this directly

Calls 4

InitOptFunction · 0.85
OpenFunction · 0.85
WithNodeNumFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected