MCPcopy
hub / github.com/jackc/pgx / FuzzCopyBothResponse

Function FuzzCopyBothResponse

pgproto3/fuzz_test.go:221–228  ·  view source on GitHub ↗
(f *testing.F)

Source from the content-addressed store, hash-verified

219}
220
221func 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
230func FuzzErrorResponse(f *testing.F) {
231 f.Add([]byte{'S', 'E', 'R', 'R', 'O', 'R', 0, 'M', 't', 'e', 's', 't', 0, 0})

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.95

Tested by

no test coverage detected