elvish/pkg/eval/fuzz_test.go
2022-01-01 23:52:08 +00:00

20 lines
318 B
Go

//go:build go1.18
// +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)
})
}