(t *testing.T, data []byte)
| 1793 | } |
| 1794 | |
| 1795 | func fuzzUnmarshal(t *testing.T, data []byte) { |
| 1796 | defer func() { |
| 1797 | if e := recover(); e != nil { |
| 1798 | t.Errorf("These bytes caused a panic: %+v", data) |
| 1799 | t.Logf("Stack:\n%s", debug.Stack()) |
| 1800 | t.FailNow() |
| 1801 | } |
| 1802 | }() |
| 1803 | |
| 1804 | pb := new(pb2.MyMessage) |
| 1805 | proto.Unmarshal(data, pb) |
| 1806 | } |
| 1807 | |
| 1808 | func TestMapFieldMarshal(t *testing.T) { |
| 1809 | m := &pb2.MessageWithMap{ |
no test coverage detected