File tree Expand file tree Collapse file tree 2 files changed +21
-4
lines changed
go/analysis/passes/composite Expand file tree Collapse file tree 2 files changed +21
-4
lines changed Original file line number Diff line number Diff line change
1
+ // Copyright 2022 The Go Authors. All rights reserved.
2
+ // Use of this source code is governed by a BSD-style
3
+ // license that can be found in the LICENSE file.
4
+
5
+ //go:build go1.18
6
+ // +build go1.18
7
+
8
+ package a
9
+
10
+ import "testing"
11
+
12
+ var fuzzTargets = []testing.InternalFuzzTarget {
13
+ {"Fuzz" , Fuzz },
14
+ }
15
+
16
+ func Fuzz (f * testing.F ) {}
Original file line number Diff line number Diff line change @@ -26,9 +26,10 @@ var unkeyedLiteral = map[string]bool{
26
26
"unicode.Range16" : true ,
27
27
"unicode.Range32" : true ,
28
28
29
- // These three structs are used in generated test main files,
29
+ // These four structs are used in generated test main files,
30
30
// but the generator can be trusted.
31
- "testing.InternalBenchmark" : true ,
32
- "testing.InternalExample" : true ,
33
- "testing.InternalTest" : true ,
31
+ "testing.InternalBenchmark" : true ,
32
+ "testing.InternalExample" : true ,
33
+ "testing.InternalTest" : true ,
34
+ "testing.InternalFuzzTarget" : true ,
34
35
}
You can’t perform that action at this time.
0 commit comments