(t *testing.T)
| 104 | } |
| 105 | |
| 106 | func TestBitMapStructure_BitDels(t *testing.T) { |
| 107 | bitmap := initBitMap() |
| 108 | defer bitmap.db.Clean() |
| 109 | |
| 110 | // Test BitDels function |
| 111 | bitmapErr = bitmap.SetBits(string(randkv.GetTestKey(1)), 0, true, 1, false, 2, true) |
| 112 | assert.Nil(t, bitmapErr) |
| 113 | bitmapErr = bitmap.BitDels(string(randkv.GetTestKey(1)), 0, 1) |
| 114 | assert.Nil(t, bitmapErr) |
| 115 | values, err := bitmap.GetBits(string(randkv.GetTestKey(1)), 0) |
| 116 | assert.Nil(t, err) |
| 117 | assert.Equal(t, []bool{true}, values) |
| 118 | } |
| 119 | |
| 120 | func TestBitMapStructure_Integration(t *testing.T) { |
| 121 | opts := config.DefaultOptions |
nothing calls this directly
no test coverage detected