]> Cypherpunks repositories - gostls13.git/commit
cmd/covdata: add tools to read/manipulate coverage data files
authorThan McIntosh <thanm@google.com>
Thu, 21 Oct 2021 14:57:23 +0000 (10:57 -0400)
committerThan McIntosh <thanm@google.com>
Wed, 28 Sep 2022 11:47:16 +0000 (11:47 +0000)
commit7a74829858bbc2fdf8b2d8902f7df46935cf6be9
treee890c58e098c341d3c588d511cd73f5dac7df7fc
parentdbe56ff6c7a0162f318ed2dd7331c9de82e11d6d
cmd/covdata: add tools to read/manipulate coverage data files

Add a set of helper packages for reading collections of related
meta-data and counter-data files ("pods") produced by runs of
coverage-instrumented binaries, and a new tool program (cmd/covdata)
for dumping and/or manipulating coverage data files.

Currently "go tool covdata" subcommands include 'merge', 'intersect',
'percent', 'pkglist', 'subtract', 'debugdump', and 'textfmt'
(conversion to the legacy "go tool cover" format).

Updates #51430.

Change-Id: I44167c578f574b4636ab8726e726388531fd3258
Reviewed-on: https://go-review.googlesource.com/c/go/+/357609
Run-TryBot: Than McIntosh <thanm@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: David Chase <drchase@google.com>
21 files changed:
src/cmd/covdata/argsmerge.go [new file with mode: 0644]
src/cmd/covdata/covdata.go [new file with mode: 0644]
src/cmd/covdata/doc.go [new file with mode: 0644]
src/cmd/covdata/dump.go [new file with mode: 0644]
src/cmd/covdata/merge.go [new file with mode: 0644]
src/cmd/covdata/metamerge.go [new file with mode: 0644]
src/cmd/covdata/subtractintersect.go [new file with mode: 0644]
src/cmd/covdata/testdata/dep.go [new file with mode: 0644]
src/cmd/covdata/testdata/prog1.go [new file with mode: 0644]
src/cmd/covdata/testdata/prog2.go [new file with mode: 0644]
src/cmd/covdata/tool_test.go [new file with mode: 0644]
src/cmd/internal/cov/mreader.go [new file with mode: 0644]
src/cmd/internal/cov/readcovdata.go [new file with mode: 0644]
src/go/build/deps_test.go
src/internal/coverage/calloc/batchcounteralloc.go [new file with mode: 0644]
src/internal/coverage/cformat/fmt_test.go [new file with mode: 0644]
src/internal/coverage/cformat/format.go [new file with mode: 0644]
src/internal/coverage/cmerge/merge.go [new file with mode: 0644]
src/internal/coverage/cmerge/merge_test.go [new file with mode: 0644]
src/internal/coverage/pods/pods.go [new file with mode: 0644]
src/internal/coverage/pods/pods_test.go [new file with mode: 0644]