You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Don't mark non required files as "100%" branch coverage #902
We have a problem: if files aren't loaded/required we don't have branch data. If they are added through track_files we give it 0/0 branches which we show as 100% coverage (all possible branches are covered).
That math is "wrong" though here because there are branches but we don't know what they are. We should probably count total branches here as "unkown" and establish that in our "math universe" 0/unknown = 0%. We know that none of them is covered because no one even loaded the file(s).
We could potentially let a source file know that it was "force loaded" or something like that. That'd make it easier to show coverage as "unknown" and to help further distinguish these cases.
Activity
tamesuu commentedon Jan 15, 2023
@PragTob
Hello!
Is this issue active??
I wanto try this issue :)
Fix misleading 100% branch/method coverage for unloaded tracked files
Flag never-loaded files in merged results
Flag never-loaded files in merged results
Judge never-loaded files only by their relevant lines