aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorRob Pike <r@golang.org>2015-05-08 11:00:17 -0700
committerRob Pike <r@golang.org>2015-05-08 18:38:25 +0000
commit2b833666f13e851f1a83873ac249bfce1059df2c (patch)
treec727f7d843f026f186051e415e9568b4bc2230ed /src/testing
parent91d989eb6df17b0696cfd53e84b10ccb3f09c1dd (diff)
downloadgo-2b833666f13e851f1a83873ac249bfce1059df2c.tar.xz
testing: make the output of -v more uniform and aligned when using fixed-width fonts
Delete the colon from RUN: for examples, since it's not there for tests. Add spaces to line up RUN and PASS: lines. Before: === RUN TestCount --- PASS: TestCount (0.00s) === RUN: ExampleFields --- PASS: ExampleFields (0.00s) After: === RUN TestCount --- PASS: TestCount (0.00s) === RUN ExampleFields --- PASS: ExampleFields (0.00s) Fixes #10594. Change-Id: I189c80a5d99101ee72d8c9c3a4639c07e640cbd8 Reviewed-on: https://go-review.googlesource.com/9846 Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/example.go2
-rw-r--r--src/testing/testing.go2
2 files changed, 2 insertions, 2 deletions
diff --git a/src/testing/example.go b/src/testing/example.go
index 61339a6465..30baf27030 100644
--- a/src/testing/example.go
+++ b/src/testing/example.go
@@ -43,7 +43,7 @@ func RunExamples(matchString func(pat, str string) (bool, error), examples []Int
func runExample(eg InternalExample) (ok bool) {
if *chatty {
- fmt.Printf("=== RUN: %s\n", eg.Name)
+ fmt.Printf("=== RUN %s\n", eg.Name)
}
// Capture stdout.
diff --git a/src/testing/testing.go b/src/testing/testing.go
index 280d76a1aa..35ab82d421 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -557,7 +557,7 @@ func RunTests(matchString func(pat, str string) (bool, error), tests []InternalT
}
t.self = t
if *chatty {
- fmt.Printf("=== RUN %s\n", t.name)
+ fmt.Printf("=== RUN %s\n", t.name)
}
go tRunner(t, &tests[i])
out := (<-t.signal).(*T)