Move parser to internal package

This commit is contained in:
Asdine El Hrychy
2021-05-23 21:03:11 +04:00
parent 2387a3b66c
commit f402374ca3
160 changed files with 46 additions and 46 deletions

View File

@@ -0,0 +1,18 @@
//go:build go1.17
// +build go1.17
package parser
import (
"testing"
)
func FuzzParseQuery(f *testing.F) {
f.Fuzz(func(t *testing.T, s string) {
// Fuzz ParseQuery for panics.
q, err := ParseQuery(s)
if err != nil || len(q.Statements) < 1 {
t.Skip()
}
})
}