(f *testing.F)
| 219 | } |
| 220 | |
| 221 | func FuzzCopyBothResponse(f *testing.F) { |
| 222 | f.Add([]byte{0, 0, 1, 0, 0}) |
| 223 | f.Add([]byte{}) |
| 224 | f.Fuzz(func(t *testing.T, data []byte) { |
| 225 | var msg pgproto3.CopyBothResponse |
| 226 | msg.Decode(data) // must not panic |
| 227 | }) |
| 228 | } |
| 229 | |
| 230 | func FuzzErrorResponse(f *testing.F) { |
| 231 | f.Add([]byte{'S', 'E', 'R', 'R', 'O', 'R', 0, 'M', 't', 'e', 's', 't', 0, 0}) |