From 2e6b92fc56f76ba04019221590d81941e384a2c8 Mon Sep 17 00:00:00 2001 From: Damian Gryski Date: Thu, 11 Nov 2021 08:27:53 -0800 Subject: [PATCH] src/testing: add testing.Verbose() --- src/testing/testing.go | 5 +++++ 1 file changed, 5 insertions(+) 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()) }