Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Coverage on branch when there is no branch #277

Open
glureau opened this issue Apr 11, 2024 · 0 comments
Open

Coverage on branch when there is no branch #277

glureau opened this issue Apr 11, 2024 · 0 comments

Comments

@glureau
Copy link

glureau commented Apr 11, 2024

Assuming a simple data class Foo(val a: Int), and this class is used in some tests, the coverage of this class will be 100% of lines, but it will report NaN% on branch coverage. While I'm ~ok to display "NaN%", I'm bothered by the red cross next to it. Given we have at least 1 line covered in a code which has no branch, I guess we should either discard those files from the reporting or consider them 100% covered anyway.

Screenshot 2024-04-11 at 14 48 45

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

No branches or pull requests

1 participant