mirror of
https://github.com/chaisql/chai.git
synced 2025-10-01 22:12:16 +08:00
19 lines
281 B
Go
19 lines
281 B
Go
//go:build go1.18
|
|
// +build go1.18
|
|
|
|
package parser
|
|
|
|
import (
|
|
"testing"
|
|
)
|
|
|
|
func FuzzParseQuery(f *testing.F) {
|
|
f.Fuzz(func(t *testing.T, s string) {
|
|
// Fuzz ParseQuery for panics.
|
|
statements, err := ParseQuery(s)
|
|
if err != nil || len(statements) < 1 {
|
|
t.Skip()
|
|
}
|
|
})
|
|
}
|