(t *testing.T)
| 66 | } |
| 67 | |
| 68 | func TestBitmapStructure_GetBit(t *testing.T) { |
| 69 | // Setup the bitmap structure |
| 70 | bm := initBitmap() |
| 71 | |
| 72 | err := bm.SetBit("1", 2) |
| 73 | assert.NoError(t, err) |
| 74 | val, err := bm.GetBit("1", 2) |
| 75 | assert.NoError(t, err) |
| 76 | assert.True(t, val) |
| 77 | val, _ = bm.GetBit("1", 1) |
| 78 | assert.False(t, val) |
| 79 | } |
| 80 | |
| 81 | func TestBitmapStructure_DelBit(t *testing.T) { |
| 82 | bm := initBitmap() |
nothing calls this directly
no test coverage detected