(t *testing.T)
| 90 | } |
| 91 | |
| 92 | func TestBitMapStructure_BitDel(t *testing.T) { |
| 93 | bitmap := initBitMap() |
| 94 | defer bitmap.db.Clean() |
| 95 | |
| 96 | // Test BitDel function |
| 97 | bitmapErr = bitmap.SetBits(string(randkv.GetTestKey(1)), 0, true, 1, false, 2, true) |
| 98 | assert.Nil(t, bitmapErr) |
| 99 | bitmapErr = bitmap.BitDel(string(randkv.GetTestKey(1)), 1) |
| 100 | assert.Nil(t, bitmapErr) |
| 101 | values, err := bitmap.GetBits(string(randkv.GetTestKey(1)), 0, 1) |
| 102 | assert.Nil(t, err) |
| 103 | assert.Equal(t, []bool{true, true}, values) |
| 104 | } |
| 105 | |
| 106 | func TestBitMapStructure_BitDels(t *testing.T) { |
| 107 | bitmap := initBitMap() |
nothing calls this directly
no test coverage detected