Skip to content

Conversation

@williamjallen
Copy link
Collaborator

The coverage file UI currently shows "NaN" when there are no executable lines of code in the file. Since the behavior in such a case is undefined, it's better to just hide the percent display unless there are lines to calculate a percentage from.

@williamjallen williamjallen force-pushed the coverage-file-percent-bugfix branch from 98a7161 to ef258e2 Compare October 14, 2025 12:35
Copy link
Member

@josephsnyder josephsnyder left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Much better display. LGTM!

@josephsnyder josephsnyder added this pull request to the merge queue Oct 15, 2025
Merged via the queue into Kitware:master with commit f53b944 Oct 15, 2025
7 checks passed
@williamjallen williamjallen deleted the coverage-file-percent-bugfix branch October 15, 2025 21:32
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants