go/src/testing
Than McIntosh f81c885819 cmd/go,testing: re-implement testing.Coverage
This patch revives the testing.Coverage() function, which takes a
snapshot of the coverage counters within an executing "go test -cover"
test binary and returns a percentage approximating the percent of
statements covered so far.

Fixes #59590.

Change-Id: I541d47a42d71c8fb2edc473d86c8951fa80f4ab0
Reviewed-on: https://go-review.googlesource.com/c/go/+/495450
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
2023-05-23 11:37:31 +00:00
..
fstest all: add String for fs.{FileInfo,DirEntry} implementations 2023-05-04 16:27:35 +00:00
internal/testdeps
iotest
quick database/sql,testing/quick: use reflect.Value.SetZero 2023-04-04 07:16:34 +00:00
slogtest log/slog: built-in handler constructors take options as a second arg 2023-05-04 18:32:54 +00:00
allocs.go
allocs_test.go
benchmark.go
benchmark_test.go
cover.go cmd/go,testing: re-implement testing.Coverage 2023-05-23 11:37:31 +00:00
example.go std: fix various nilness findings 2023-04-20 01:07:29 +00:00
export_test.go
flag_test.go testing: quote -test.v=test2json output when logging it 2023-03-23 19:50:22 +00:00
fuzz.go all: fix typos in go file comments 2023-01-09 15:34:31 +00:00
helper_test.go
helperfuncs_test.go
match.go
match_test.go
newcover.go cmd/go,testing: re-implement testing.Coverage 2023-05-23 11:37:31 +00:00
panic_test.go
run_example.go all: add wasip1 support 2023-04-11 20:56:32 +00:00
run_example_wasm.go all: add wasip1 support 2023-04-11 20:56:32 +00:00
sub_test.go
testing.go cmd/dist: actually only compile tests with -compile-only 2023-04-25 19:49:28 +00:00
testing_other.go
testing_test.go testing: add Testing function 2023-03-13 21:58:46 +00:00
testing_windows.go