For the most part this is already supported in GitHub’s new UI:
The total coverage for the file is shown, and the visibility can be toggled. Line coverage should be shown for hits (green), misses (red), and partials (yellow). This functionality should work when viewing any file on any branch in the repo for which coverage has been uploaded.
If no coverage is available for the file, a small warning should be displayed:
No coverage available for file
in the UI, likely in the file header close to the “Coverage: X%” button.
For the most part this is already supported in GitHub’s new UI:
The total coverage for the file is shown, and the visibility can be toggled. Line coverage should be shown for hits (green), misses (red), and partials (yellow). This functionality should work when viewing any file on any branch in the repo for which coverage has been uploaded.
If no coverage is available for the file, a small warning should be displayed:
in the UI, likely in the file header close to the “Coverage: X%” button.