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

Function FuzzExecute

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

Source from the content-addressed store, hash-verified

192}
193
194func FuzzExecute(f *testing.F) {
195 f.Add([]byte{'t', 'e', 's', 't', 0, 0, 0, 0, 0})
196 f.Add([]byte{})
197 f.Fuzz(func(t *testing.T, data []byte) {
198 var msg pgproto3.Execute
199 msg.Decode(data) // must not panic
200 })
201}
202
203func FuzzCopyInResponse(f *testing.F) {
204 f.Add([]byte{0, 0, 1, 0, 0})

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.95

Tested by

no test coverage detected