(t *testing.T, in, out Message, msg string)
| 1199 | } |
| 1200 | |
| 1201 | func encodeDecode(t *testing.T, in, out Message, msg string) { |
| 1202 | buf, err := Marshal(in) |
| 1203 | if err != nil { |
| 1204 | t.Fatalf("failed marshaling %v: %v", msg, err) |
| 1205 | } |
| 1206 | if err := Unmarshal(buf, out); err != nil { |
| 1207 | t.Fatalf("failed unmarshaling %v: %v", msg, err) |
| 1208 | } |
| 1209 | } |
| 1210 | |
| 1211 | func TestPackedNonPackedDecoderSwitching(t *testing.T) { |
| 1212 | np, p := new(NonPackedTest), new(PackedTest) |
no test coverage detected
searching dependent graphs…