RSS 2025-12-06 03:48
libraries

Ignore autogenerated files in coverage

来源:Reddit r/golang

My code base contains some autogenerated Go files:

mocks: created by testify (own package)

zz_generated: generated deepcopy (file in a package)

I want to see my functions sorted by "most uncovered lines first".

But I want to ignore the autogenerated files.

How would you do that?

submitted by /u/guettli
[link] [comments]