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

Function TestBitmapStructure_SetBit

structure/bitmap_test.go:23–32  ·  view source on GitHub ↗
(t *testing.T)

Source from the content-addressed store, hash-verified

21}
22
23func TestBitmapStructure_SetBit(t *testing.T) {
24 // Setup the bitmap structure
25 bm := initBitmap()
26 err := bm.SetBit("1", 7)
27 assert.NoError(t, err)
28 val, err := bm.GetBits("1")
29 assert.NoError(t, err)
30 assert.True(t, val.At(7))
31
32}
33func TestBitmapStructure_SetBits(t *testing.T) {
34 // Setup the bitmap structure
35 bm := initBitmap()

Callers

nothing calls this directly

Calls 4

initBitmapFunction · 0.85
AtMethod · 0.80
SetBitMethod · 0.45
GetBitsMethod · 0.45

Tested by

no test coverage detected