Skip to content

Commit 4cf6eb9

Browse files
committed
testdata/testing.go: add InternalFuzzTarget{} for go1.18
1 parent 308f547 commit 4cf6eb9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

testdata/testing.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,8 @@ var tests = []testing.InternalTest{
5555

5656
var benchmarks = []testing.InternalBenchmark{}
5757

58+
var fuzzes = []testing.InternalFuzzTarget{}
59+
5860
var examples = []testing.InternalExample{}
5961

6062
// A fake regexp matcher.
@@ -73,7 +75,7 @@ func fakeMatchString(pat, str string) (bool, error) {
7375
func main() {
7476
testing.Init()
7577
flag.Set("test.run", ".*/B")
76-
m := testing.MainStart(matchStringOnly(fakeMatchString /*regexp.MatchString*/), tests, benchmarks, examples)
78+
m := testing.MainStart(matchStringOnly(fakeMatchString /*regexp.MatchString*/), tests, benchmarks, fuzzes, examples)
7779

7880
exitcode := m.Run()
7981
if exitcode != 0 {

0 commit comments

Comments
 (0)