]> Cypherpunks repositories - gostls13.git/commit
internal/coverage: add coverage meta-data encoder
authorThan McIntosh <thanm@google.com>
Wed, 29 Sep 2021 20:41:49 +0000 (16:41 -0400)
committerThan McIntosh <thanm@google.com>
Mon, 26 Sep 2022 20:51:52 +0000 (20:51 +0000)
commitf951f697c45ace2f00dccd8d2533463b6538dc36
tree60de378073c39174cbd9dd8aeecf7fdae1077945
parenta3434b71a349b396bef43921732709c3a5f54f23
internal/coverage: add coverage meta-data encoder

Add a new package with APIs for encoding coverage meta-data. This
provides support for accumulating information about each function
during the compilation process, and then encoding and emitting a
payload for a coverage meta-data symbol.  Not yet connected to the
rest of the coverage machinery (that will appear in a later patch).

Updates #51430.

Change-Id: I61054ce87f205b25fb1bfedaa740fd7425c34de4
Reviewed-on: https://go-review.googlesource.com/c/go/+/353453
Run-TryBot: Than McIntosh <thanm@google.com>
Reviewed-by: David Chase <drchase@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
src/go/build/deps_test.go
src/internal/coverage/defs.go [new file with mode: 0644]
src/internal/coverage/encodemeta/encode.go [new file with mode: 0644]
src/internal/coverage/encodemeta/encodefile.go [new file with mode: 0644]
src/internal/coverage/stringtab/stringtab.go [new file with mode: 0644]
src/internal/coverage/uleb128/uleb128.go [new file with mode: 0644]