super-graph/qcode/fuzz.go

15 lines
219 B
Go
Raw Permalink Normal View History

// +build gofuzz
2019-04-18 21:08:14 -04:00
package qcode
// FuzzerEntrypoint for Fuzzbuzz
2019-10-26 03:02:05 -04:00
func Fuzz(data []byte) int {
2019-04-18 21:08:14 -04:00
qcompile, _ := NewCompiler(Config{})
2019-10-14 02:51:36 -04:00
_, err := qcompile.Compile(data, "user")
2019-04-18 21:08:14 -04:00
if err != nil {
2019-10-26 03:02:05 -04:00
return 0
2019-04-18 21:08:14 -04:00
}
2019-10-26 03:02:05 -04:00
return 1
2019-04-18 21:08:14 -04:00
}