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

Function TestWithMaxWriteRecordCount

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

Source from the content-addressed store, hash-verified

55}
56
57func 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
69func TestWithRWMode(t *testing.T) {
70 db, err = Open(DefaultOptions,

Callers

nothing calls this directly

Calls 5

InitOptFunction · 0.85
OpenFunction · 0.85
WithMaxWriteRecordCountFunction · 0.85
CloseMethod · 0.65

Tested by

no test coverage detected