aboutsummaryrefslogtreecommitdiff
path: root/src/errors/example_test.go
diff options
context:
space:
mode:
authorThan McIntosh <thanm@google.com>2023-01-19 10:16:07 -0500
committerThan McIntosh <thanm@google.com>2023-01-20 21:41:45 +0000
commitcf70d37967b8447af8305e02ef534c4c5f42d49c (patch)
tree1e15c50e6c1e9c224fa48990f54931d16cd72248 /src/errors/example_test.go
parent8bec956360d63d2f39d45a889b200c0dedfe96a0 (diff)
downloadgo-cf70d37967b8447af8305e02ef534c4c5f42d49c.tar.xz
runtime/coverage: avoid non-test coverage profiles in test report helper
When walking through the set of coverage data files generated from a "go test -cover" run, it's possible to encounter pods (clumps of data files) that were generated by a run from an instrumented Go tool (for example, cmd/compile). Add a guard to the test reporting code to ensure that it only processes files created by the currently running test. Fixes #57924. Change-Id: I1bb7dce88305e1088162e3cb1df628486ecee1c1 Reviewed-on: https://go-review.googlesource.com/c/go/+/462756 Reviewed-by: David Chase <drchase@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Cherry Mui <cherryyz@google.com> Run-TryBot: Than McIntosh <thanm@google.com>
Diffstat (limited to 'src/errors/example_test.go')
0 files changed, 0 insertions, 0 deletions