(t *testing.T)
| 48 | } |
| 49 | |
| 50 | func TestEncodeListKeyAndDecodeListKey(t *testing.T) { |
| 51 | key := []byte("test_key") |
| 52 | seq := uint64(114514) |
| 53 | dataKey := utils.EncodeListKey(key, seq) |
| 54 | newKey, newSeq := utils.DecodeListKey(dataKey) |
| 55 | assert.Equal(t, key, newKey) |
| 56 | assert.Equal(t, seq, newSeq) |
| 57 | } |
| 58 | |
| 59 | func TestFnvHash32(t *testing.T) { |
| 60 | t.Run("test hash32", func(t *testing.T) { |
nothing calls this directly
no test coverage detected