(t *testing.T)
| 593 | } |
| 594 | |
| 595 | func TestDesc_EncodingMultikey(t *testing.T) { |
| 596 | codec := GetCodec() |
| 597 | ring := &Desc{Ingesters: map[string]InstanceDesc{ |
| 598 | "ing1": {Addr: "addr1", Timestamp: 123456}, |
| 599 | "ing2": {Addr: "addr2", Timestamp: 5678}, |
| 600 | "ing3": {}, |
| 601 | }} |
| 602 | encoded, err := codec.EncodeMultiKey(ring) |
| 603 | assert.NoError(t, err) |
| 604 | decoded, err := codec.DecodeMultiKey(encoded) |
| 605 | assert.NoError(t, err) |
| 606 | |
| 607 | assert.Equal(t, ring, decoded) |
| 608 | } |
| 609 | |
| 610 | func TestDesc_FindDifference(t *testing.T) { |
| 611 | tests := map[string]struct { |
nothing calls this directly
no test coverage detected