aboutsummaryrefslogtreecommitdiff
path: root/src/testing/testing.go
diff options
context:
space:
mode:
authorKatie Hockman <katie@golang.org>2021-03-04 14:53:18 -0500
committerKatie Hockman <katie@golang.org>2021-03-19 15:16:55 +0000
commit9d4d5ee66dc53f6640dd8f5333df69db4df3b044 (patch)
treede081fdeb1a2f0f60edb4f20f7cb02f52cce8093 /src/testing/testing.go
parent32f45d13b2fa9ef8ae17e885c2d82d80a6d22caa (diff)
downloadgo-9d4d5ee66dc53f6640dd8f5333df69db4df3b044.tar.xz
[dev.fuzz] testing: print logs and error messages when fuzzing
Also improve the error messages for the use of testing.F functions inside the Fuzz function. Change-Id: I5fa48f8c7e0460a1da89a49a73e5af83c544e549 Reviewed-on: https://go-review.googlesource.com/c/go/+/298849 Trust: Katie Hockman <katie@golang.org> Run-TryBot: Katie Hockman <katie@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Jay Conrod <jayconrod@google.com>
Diffstat (limited to 'src/testing/testing.go')
-rw-r--r--src/testing/testing.go1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/testing/testing.go b/src/testing/testing.go
index 2ad39f7137..2ba93ad63d 100644
--- a/src/testing/testing.go
+++ b/src/testing/testing.go
@@ -523,6 +523,7 @@ func (c *common) frameSkip(skip int) runtime.Frame {
// and inserts the final newline if needed and indentation spaces for formatting.
// This function must be called with c.mu held.
func (c *common) decorate(s string, skip int) string {
+ // TODO(jayconrod,katiehockman): Consider refactoring the logging logic.
// If more helper PCs have been added since we last did the conversion
if c.helperNames == nil {
c.helperNames = make(map[string]struct{})