mirror of
https://github.com/golang/go
synced 2024-11-18 13:24:39 -07:00
go/analysis/passes/composite: add testing.Internal* to whitelist
These structs appear in test main files generated by "go test" and so can be trusted. Change-Id: I1514a8cdcbd633392ccaaedfa8eccf944d514129 Reviewed-on: https://go-review.googlesource.com/c/142699 Reviewed-by: Michael Matloob <matloob@golang.org> Run-TryBot: Michael Matloob <matloob@golang.org>
This commit is contained in:
parent
5ef16f43e6
commit
e94054f410
@ -24,4 +24,10 @@ var unkeyedLiteral = map[string]bool{
|
|||||||
"image.Uniform": true,
|
"image.Uniform": true,
|
||||||
|
|
||||||
"unicode.Range16": true,
|
"unicode.Range16": true,
|
||||||
|
|
||||||
|
// These three structs are used in generated test main files,
|
||||||
|
// but the generator can be trusted.
|
||||||
|
"testing.InternalBenchmark": true,
|
||||||
|
"testing.InternalExample": true,
|
||||||
|
"testing.InternalTest": true,
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user