(t *testing.T)
| 62 | } |
| 63 | |
| 64 | func TestBitMapStructure_BitCount(t *testing.T) { |
| 65 | bitmap := initBitMap() |
| 66 | defer bitmap.db.Clean() |
| 67 | |
| 68 | // Test BitCount function |
| 69 | bitmapErr = bitmap.SetBits(string(randkv.GetTestKey(1)), 0, true, 1, false, 2, true) |
| 70 | assert.Nil(t, bitmapErr) |
| 71 | count, err := bitmap.BitCount(string(randkv.GetTestKey(1)), 0, 2) |
| 72 | assert.Nil(t, err) |
| 73 | assert.Equal(t, 2, count) |
| 74 | } |
| 75 | |
| 76 | func TestBitMapStructure_BitOp(t *testing.T) { |
| 77 | bitmap := initBitMap() |
nothing calls this directly
no test coverage detected