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

Function FuzzNotificationResponse

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

Source from the content-addressed store, hash-verified

238}
239
240func FuzzNotificationResponse(f *testing.F) {
241 f.Add([]byte{0, 0, 0, 1, 'c', 'h', 0, 'p', 0})
242 f.Add([]byte{})
243 f.Fuzz(func(t *testing.T, data []byte) {
244 var msg pgproto3.NotificationResponse
245 msg.Decode(data) // must not panic
246 })
247}
248
249func FuzzParameterDescription(f *testing.F) {
250 f.Add([]byte{0, 1, 0, 0, 0, 23})

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.95

Tested by

no test coverage detected