1
0
mirror of https://github.com/golang/go synced 2024-11-17 02:04:48 -07:00
go/src/testing
Roland Shoemaker 1f411e9b6d testing: only snapshot coverage during fuzzing
Only snapshot/reset coverage counters when we are actually fuzzing.
This prevents a race when running corpus/seed values during the testing
phase.

Fixes #50488

Change-Id: I7dd5a0353a296c0b13eede29ad9af7c78814fa2d
Reviewed-on: https://go-review.googlesource.com/c/go/+/376554
Trust: Katie Hockman <katie@golang.org>
Reviewed-by: Katie Hockman <katie@golang.org>
Trust: Roland Shoemaker <roland@golang.org>
Run-TryBot: Roland Shoemaker <roland@golang.org>
TryBot-Result: Gopher Robot <gobot@golang.org>
2022-01-10 21:48:09 +00:00
..
fstest all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
internal/testdeps all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
iotest
quick all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
allocs_test.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
allocs.go
benchmark_test.go
benchmark.go
cover.go
example.go all: gofmt -w -r 'interface{} -> any' src 2021-12-13 18:45:54 +00:00
export_test.go
fuzz.go testing: only snapshot coverage during fuzzing 2022-01-10 21:48:09 +00:00
helper_test.go
helperfuncs_test.go
match_test.go
match.go
panic_test.go
run_example_js.go
run_example.go
sub_test.go
testing_other.go testing: retry spurious errors from RemoveAll for temp directories 2021-12-14 19:53:20 +00:00
testing_test.go
testing_windows.go testing: retry spurious errors from RemoveAll for temp directories 2021-12-14 19:53:20 +00:00
testing.go testing: retry spurious errors from RemoveAll for temp directories 2021-12-14 19:53:20 +00:00