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

Function FuzzRowDescription

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

Source from the content-addressed store, hash-verified

124}
125
126func FuzzRowDescription(f *testing.F) {
127 f.Add([]byte{0, 1, 'n', 'a', 'm', 'e', 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0})
128 f.Add([]byte{0, 0})
129 f.Add([]byte{})
130 f.Fuzz(func(t *testing.T, data []byte) {
131 var msg pgproto3.RowDescription
132 msg.Decode(data) // must not panic
133 })
134}
135
136func FuzzFunctionCall(f *testing.F) {
137 f.Add([]byte{0, 0, 0, 1, 0, 0, 0, 1, 0, 0, 0, 0, 0, 1})

Callers

nothing calls this directly

Calls 1

DecodeMethod · 0.95

Tested by

no test coverage detected