mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00: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
1 changed files with 5 additions and 0 deletions
|
|
@ -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…
Add table
Add a link
Reference in a new issue