From 9d4d5ee66dc53f6640dd8f5333df69db4df3b044 Mon Sep 17 00:00:00 2001 From: Katie Hockman Date: Thu, 4 Mar 2021 14:53:18 -0500 Subject: [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 Run-TryBot: Katie Hockman TryBot-Result: Go Bot Reviewed-by: Jay Conrod --- src/testing/testing.go | 1 + 1 file changed, 1 insertion(+) (limited to 'src/testing/testing.go') 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{}) -- cgit v1.3-5-g9baa