mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-13 18:07:51 +08:00
17 lines
284 B
Go
17 lines
284 B
Go
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)
|
|
})
|
|
}
|