From: Shenghou Ma Date: Thu, 9 Aug 2012 15:41:09 +0000 (+0800) Subject: testing: add Verbose() to expose whether -test.v is set X-Git-Tag: go1.1rc2~2665 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=20bf1a94e16402ccd29fb981dc68643a31353042;p=gostls13.git 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 --- diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go index e56b77c9c7..2334ffc45a 100644 --- a/src/pkg/testing/testing.go +++ b/src/pkg/testing/testing.go @@ -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 {