()
| 36 | } |
| 37 | |
| 38 | func testBytesRoundtrip() { |
| 39 | input := test.BytesByName{ |
| 40 | "hello": []uint8("world"), |
| 41 | "bin": {0, 1, 2}, |
| 42 | } |
| 43 | result := test.BytesRoundtrip(input) |
| 44 | assertSliceEqual(result["hello"], []uint8("world")) |
| 45 | assertSliceEqual(result["bin"], []uint8{0, 1, 2}) |
| 46 | } |
| 47 | |
| 48 | func testEmptyRoundtrip() { |
| 49 | input := test.NamesById{} |
no test coverage detected