mirror of
https://github.com/golang/go
synced 2024-11-22 00:04:41 -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:
parent
ef96d724e5
commit
20bf1a94e1
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user