mirror of
https://github.com/golang/go
synced 2024-11-13 18:10:24 -07:00
gotest: generate gofmt-compliant code
R=r CC=golang-dev https://golang.org/cl/4400047
This commit is contained in:
parent
6f921f22ae
commit
02cae293cc
@ -393,7 +393,7 @@ func writeTestmainGo() {
|
||||
fmt.Fprintln(b)
|
||||
|
||||
// Benchmarks.
|
||||
fmt.Fprintln(b, "var benchmarks = []testing.InternalBenchmark{")
|
||||
fmt.Fprintf(b, "var benchmarks = []testing.InternalBenchmark{")
|
||||
for _, f := range files {
|
||||
for _, bm := range f.benchmarks {
|
||||
fmt.Fprintf(b, "\t{\"%s.%s\", %s.%s},\n", f.pkg, bm, notMain(f.pkg), bm)
|
||||
|
Loading…
Reference in New Issue
Block a user