diff --git a/src/pkg/testing/testing.go b/src/pkg/testing/testing.go index e56b77c9c77..2334ffc45a4 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 {