1
0
mirror of https://github.com/golang/go synced 2024-11-22 00:54:43 -07:00

testing: add Verbose() to expose whether -test.v is set

Fixes #3350.

R=golang-dev, adg, r, fullung
CC=golang-dev
https://golang.org/cl/6445092
This commit is contained in:
Shenghou Ma 2012-08-09 23:41:09 +08:00
parent ef96d724e5
commit 20bf1a94e1

View File

@ -132,6 +132,11 @@ func Short() bool {
return *short
}
// Verbose reports whether the -test.v flag is set.
func Verbose() bool {
return *chatty
}
// decorate prefixes the string with the file and line of the call site
// and inserts the final newline if needed and indentation tabs for formatting.
func decorate(s string) string {