]> Cypherpunks repositories - gostls13.git/commit
[dev.fuzz] internal/fuzz: count coverage-only runs toward -fuzztime
authorJay Conrod <jayconrod@google.com>
Fri, 27 Aug 2021 20:45:32 +0000 (13:45 -0700)
committerJay Conrod <jayconrod@google.com>
Tue, 31 Aug 2021 17:53:48 +0000 (17:53 +0000)
commit03b8d403dc620050cf5a5ded9be6c89bcd388a70
tree4e14cff324e85ed5133ed93b1b9197fe4a101326
parent37da45d05a50419b44dcb444d280af31e5344f8e
[dev.fuzz] internal/fuzz: count coverage-only runs toward -fuzztime

When we start fuzzing, we gather baseline coverage by calling the fuzz
function with each entry in the corpus (testdata, F.Add, and
cache). These calls should count toward -fuzztime when it specifies a
limited number of calls to the fuzz function.

Change-Id: I3ff57b6d0b25e2e22bb4ce24b10f5112fb116311
Reviewed-on: https://go-review.googlesource.com/c/go/+/345769
Trust: Jay Conrod <jayconrod@google.com>
Trust: Katie Hockman <katie@golang.org>
Run-TryBot: Jay Conrod <jayconrod@google.com>
TryBot-Result: Go Bot <gobot@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
src/internal/fuzz/worker.go