super-graph/qcode/fuzz.go

15 lines
242 B
Go
Raw Normal View History

2019-04-19 03:08:14 +02:00
package qcode
// FuzzerEntrypoint for Fuzzbuzz
func FuzzerEntrypoint(data []byte) int {
testData := string(data)
qcompile, _ := NewCompiler(Config{})
_, err := qcompile.CompileQuery(testData)
if err != nil {
return -1
}
return 0
}