Skip to content

Added minimum _test.go files for files that does not have tests.#650

Merged
ToreMerkely merged 1 commit intomainfrom
fix-cov-data-problem
Feb 3, 2026
Merged

Added minimum _test.go files for files that does not have tests.#650
ToreMerkely merged 1 commit intomainfrom
fix-cov-data-problem

Conversation

@ToreMerkely
Copy link
Contributor

We use the tool cover for coverage, but if there is no _test.go file,
then Go use the tool covdata. At the same time, they removed covdata
as a precompiled binary in the distribution. This made the coverage
calculation fail for some of us.

As described in this discussion
golang/go#75031
there is an other option to fix this by modifying the
GOTOOLCHAIN variable, but that is too much magic for me and
could be very hard to debug for the next person who stumbles
over this.

We use the tool cover for coverage, but if there is no _test.go file,
then Go use the tool covdata. At the same time, they removed covdata
as a precompiled binary in the distribution. This made the coverage
calculation fail for some of us.

As described in this discussion
  golang/go#75031
there is an other option to fix this by modifying the
GOTOOLCHAIN variable, but that is too much magic for me and
could be very hard to debug for the next person who stumbles
over this.
@ToreMerkely ToreMerkely enabled auto-merge (squash) February 3, 2026 07:15
@ToreMerkely ToreMerkely merged commit 152d593 into main Feb 3, 2026
10 checks passed
@ToreMerkely ToreMerkely deleted the fix-cov-data-problem branch February 3, 2026 07:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants