src/testing: add testing.Verbose()

This commit is contained in:
Damian Gryski
2021-11-11 08:27:53 -08:00
committed by Ayke
parent 51290e5842
commit 2e6b92fc56
+5
View File
@@ -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())
}