(t *testing.T)
| 50 | } |
| 51 | |
| 52 | func TestBitMapStructure_GetBits(t *testing.T) { |
| 53 | bitmap := initBitMap() |
| 54 | defer bitmap.db.Clean() |
| 55 | |
| 56 | // Test GetBits function |
| 57 | bitmapErr = bitmap.SetBits(string(randkv.GetTestKey(1)), 0, true, 1, false) |
| 58 | assert.Nil(t, bitmapErr) |
| 59 | values, err := bitmap.GetBits(string(randkv.GetTestKey(1)), 0, 1) |
| 60 | assert.Nil(t, err) |
| 61 | assert.Equal(t, []bool{true, false}, values) |
| 62 | } |
| 63 | |
| 64 | func TestBitMapStructure_BitCount(t *testing.T) { |
| 65 | bitmap := initBitMap() |
nothing calls this directly
no test coverage detected