elvish/pkg/eval/fuzz_test.go
Qi Xiao f7cb556d9b Require Go 1.18.
- Run "go fix" to remove legacy build tags

- Use staticcheck@master until it has a release that supports Go 1.18

- Turn off autocrlf for Windows tasks
2022-03-20 15:28:23 +00:00

19 lines
301 B
Go

//go:build go1.18
package eval
import (
"testing"
"src.elv.sh/pkg/parse"
)
func FuzzCheck(f *testing.F) {
f.Add("echo")
f.Add("put $x")
f.Add("put foo bar | each {|x| echo $x }")
f.Fuzz(func(t *testing.T, code string) {
NewEvaler().Check(parse.Source{Name: "fuzz", Code: code}, nil)
})
}