aboutsummaryrefslogtreecommitdiff
path: root/src/testing
diff options
context:
space:
mode:
authorRoland Shoemaker <roland@golang.org>2021-05-22 17:24:17 -0700
committerRoland Shoemaker <roland@golang.org>2021-06-07 18:15:26 +0000
commit2c98915ac7d304590590fc33a10a8922c466958b (patch)
tree42c139c6118a91b8e239b489a5b1cfa3122e9570 /src/testing
parent542e8c74e7051690539889a1dd0197517603e473 (diff)
downloadgo-2c98915ac7d304590590fc33a10a8922c466958b.tar.xz
[dev.fuzz] internal/fuzz: add additional debug logging
When GODEBUG=fuzzdebug=1, log additional debug level information about what the fuzzer is doing. This provides useful information for investigating the operation and performance of the fuzzing engine, and is necessary for profiling new fuzzing strategies. Change-Id: Ic3e24e7a128781377e62785767a218811c3c2030 Reviewed-on: https://go-review.googlesource.com/c/go/+/324972 Trust: Roland Shoemaker <roland@golang.org> Trust: Katie Hockman <katie@golang.org> Run-TryBot: Roland Shoemaker <roland@golang.org> TryBot-Result: Go Bot <gobot@golang.org> Reviewed-by: Katie Hockman <katie@golang.org>
Diffstat (limited to 'src/testing')
-rw-r--r--src/testing/fuzz.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/testing/fuzz.go b/src/testing/fuzz.go
index 78a0a600fa..06f755b1ea 100644
--- a/src/testing/fuzz.go
+++ b/src/testing/fuzz.go
@@ -66,9 +66,11 @@ var _ TB = (*F)(nil)
// We use a type alias because we don't want to export this type, and we can't
// importing internal/fuzz from testing.
type corpusEntry = struct {
- Name string
- Data []byte
- Values []interface{}
+ Parent string
+ Name string
+ Data []byte
+ Values []interface{}
+ Generation int
}
// Cleanup registers a function to be called when the test and all its