Add `[ExcludeFromCodeCoverage]` and/or `[GeneratedCode]` attributes
ricardoboss opened this issue · 0 comments
ricardoboss commented
Hi! I found this package to be quite useful!
I'd like to cover my code and the generated class pops up as uncovered code.
The simplest solution might be to add a dummy test that just checks each property.
The cleaner solution is to add [ExcludeFromCodeCoverage]
and/or [GeneratedCode]
attributes to signal to the test runner that this code cannot be/should not be covered directly.