diff options
| author | Rob Pike <r@golang.org> | 2015-05-08 11:00:17 -0700 |
|---|---|---|
| committer | Rob Pike <r@golang.org> | 2015-05-08 18:38:25 +0000 |
| commit | 2b833666f13e851f1a83873ac249bfce1059df2c (patch) | |
| tree | c727f7d843f026f186051e415e9568b4bc2230ed /src/testing/example.go | |
| parent | 91d989eb6df17b0696cfd53e84b10ccb3f09c1dd (diff) | |
| download | go-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/example.go')
| -rw-r--r-- | src/testing/example.go | 2 |
1 files changed, 1 insertions, 1 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. |
