Commit 8e9e75f0 authored by Benny Siegert's avatar Benny Siegert Committed by Andrew Gerrand

gotest: make _testmain.go conform to gofmt rules

Otherwise, running "gofmt -d ." after "gotest" gives some
spurious changes.

R=golang-dev, adg
CC=golang-dev
https://golang.org/cl/5504101
parent e4d624b0
......@@ -401,7 +401,7 @@ func writeTestmainGo() {
fmt.Fprintln(b) // for gofmt
// Tests.
fmt.Fprintln(b, "var tests = []testing.InternalTest{")
fmt.Fprintln(b, "var tests = []testing.InternalTest{\n")
for _, f := range files {
for _, t := range f.tests {
fmt.Fprintf(b, "\t{\"%s.%s\", %s.%s},\n", f.pkg, t, renamedPackage(f.pkg), t)
......@@ -411,7 +411,7 @@ func writeTestmainGo() {
fmt.Fprintln(b)
// Benchmarks.
fmt.Fprintf(b, "var benchmarks = []testing.InternalBenchmark{")
fmt.Fprintf(b, "var benchmarks = []testing.InternalBenchmark{\n")
for _, f := range files {
for _, bm := range f.benchmarks {
fmt.Fprintf(b, "\t{\"%s.%s\", %s.%s},\n", f.pkg, bm, renamedPackage(f.pkg), bm)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment