cmd/cover: comment to ignore files for coverage #34639
Open
Labels
Milestone
Comments
I don't think the issue is worth decorating the source code. In general I discourage tools that require annotations. Sometimes (such as with go generate) they are pretty much necessary, but this request is just for an option to control a non-critical build tool, and that is below the bar. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For some classifications of generated code it is a necessity to have the output file be in the same folder and package as the source go file (for instance generating methods on types in the source files).
However, this means that the generated code is counted when doing coverage. Which is sometimes undesirable since it is there but you don't test the whole thing.
The text was updated successfully, but these errors were encountered: