diff --git a/src/testing/testing.go b/src/testing/testing.go index 51eeb7b6..5b7ec78c 100644 --- a/src/testing/testing.go +++ b/src/testing/testing.go @@ -297,6 +297,11 @@ func Short() bool { return flagShort } +// Verbose reports whether the -test.v flag is set. +func Verbose() bool { + return flagVerbose +} + func TestMain(m *M) { os.Exit(m.Run()) }