diff --git a/go/analysis/passes/composite/whitelist.go b/go/analysis/passes/composite/whitelist.go index 67e9aa0b..ab609f27 100644 --- a/go/analysis/passes/composite/whitelist.go +++ b/go/analysis/passes/composite/whitelist.go @@ -24,4 +24,10 @@ var unkeyedLiteral = map[string]bool{ "image.Uniform": 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, }