(t *testing.T)
| 412 | } |
| 413 | |
| 414 | func TestIndexKey(t *testing.T) { |
| 415 | tableID := int64(4) |
| 416 | indexID := int64(5) |
| 417 | indexKey := EncodeIndexSeekKey(tableID, indexID, []byte{}) |
| 418 | tTableID, tIndexID, isRecordKey, err := DecodeKeyHead(indexKey) |
| 419 | require.NoError(t, err) |
| 420 | require.Equal(t, tableID, tTableID) |
| 421 | require.Equal(t, indexID, tIndexID) |
| 422 | require.False(t, isRecordKey) |
| 423 | } |
| 424 | |
| 425 | func TestRecordKey(t *testing.T) { |
| 426 | tableID := int64(55) |
nothing calls this directly
no test coverage detected