()
| 63 | } |
| 64 | |
| 65 | func testRecordRoundtrip() { |
| 66 | entry := test.LabeledEntry{ |
| 67 | Label: "test-label", |
| 68 | Values: test.NamesById{ |
| 69 | 10: "ten", |
| 70 | 20: "twenty", |
| 71 | }, |
| 72 | } |
| 73 | result := test.RecordRoundtrip(entry) |
| 74 | assertEqual(result.Label, "test-label") |
| 75 | assertEqual(len(result.Values), 2) |
| 76 | assertEqual(result.Values[10], "ten") |
| 77 | assertEqual(result.Values[20], "twenty") |
| 78 | } |
| 79 | |
| 80 | func testInlineRoundtrip() { |
| 81 | input := map[uint32]string{ |