Skip to content

Commit 40a9a9c

Browse files
committed
Pass an empty list of fuzz targets into the test main function.
Extracting and populating the list of fuzz targets will be done at a later stage.
1 parent 42a2672 commit 40a9a9c

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

tool.go

+4-1
Original file line numberDiff line numberDiff line change
@@ -1076,14 +1076,17 @@ var benchmarks = []testing.InternalBenchmark{
10761076
{{end}}
10771077
}
10781078
1079+
// TODO(nevkontakte): Extract fuzz targets from the source.
1080+
var fuzzTargets = []testing.InternalFuzzTarget{}
1081+
10791082
var examples = []testing.InternalExample{
10801083
{{range .Examples}}
10811084
{"{{.Name}}", {{.Package}}.{{.Name}}, {{.Output | printf "%q"}}, {{.Unordered}}},
10821085
{{end}}
10831086
}
10841087
10851088
func main() {
1086-
m := testing.MainStart(testdeps.TestDeps{}, tests, benchmarks, examples)
1089+
m := testing.MainStart(testdeps.TestDeps{}, tests, benchmarks, fuzzTargets, examples)
10871090
{{with .TestMain}}
10881091
{{.Package}}.{{.Name}}(m)
10891092
{{else}}

0 commit comments

Comments
 (0)