(t *testing.T)
| 38 | } |
| 39 | |
| 40 | func TestBitMapStructure_GetBit(t *testing.T) { |
| 41 | bitmap := initBitMap() |
| 42 | defer bitmap.db.Clean() |
| 43 | |
| 44 | // Test GetBit function |
| 45 | bitmapErr = bitmap.SetBit(string(randkv.GetTestKey(1)), 0, true) |
| 46 | assert.Nil(t, bitmapErr) |
| 47 | value, err := bitmap.GetBit(string(randkv.GetTestKey(1)), 0) |
| 48 | assert.Nil(t, err) |
| 49 | assert.Equal(t, true, value) |
| 50 | } |
| 51 | |
| 52 | func TestBitMapStructure_GetBits(t *testing.T) { |
| 53 | bitmap := initBitMap() |
nothing calls this directly
no test coverage detected