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

Function TestBitMapStructure_SetBit

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

Source from the content-addressed store, hash-verified

20}
21
22func TestBitMapStructure_SetBit(t *testing.T) {
23 bitmap := initBitMap()
24 defer bitmap.db.Clean()
25
26 // Test SetBit function
27 bitmapErr = bitmap.SetBit(string(randkv.GetTestKey(1)), 0, true)
28 assert.Nil(t, bitmapErr)
29}
30
31func TestBitMapStructure_SetBits(t *testing.T) {
32 bitmap := initBitMap()

Callers

nothing calls this directly

Calls 4

GetTestKeyFunction · 0.92
initBitMapFunction · 0.85
CleanMethod · 0.45
SetBitMethod · 0.45

Tested by

no test coverage detected