MCPcopy Create free account
hub / github.com/ByteStorage/FlyDB / TestBitMapStructure_SetBits

Function TestBitMapStructure_SetBits

structure/bitmap_1_test.go:31–38  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

29}
30
31func TestBitMapStructure_SetBits(t *testing.T) {
32 bitmap := initBitMap()
33 defer bitmap.db.Clean()
34
35 // Test SetBits function
36 bitmapErr = bitmap.SetBits(string(randkv.GetTestKey(1)), 0, true, 1, false)
37 assert.Nil(t, bitmapErr)
38}
39
40func TestBitMapStructure_GetBit(t *testing.T) {
41 bitmap := initBitMap()

Callers

nothing calls this directly

Calls 4

GetTestKeyFunction · 0.92
initBitMapFunction · 0.85
CleanMethod · 0.45
SetBitsMethod · 0.45

Tested by

no test coverage detected