Steps to reproduce:
- Open attached project
- Enable Code Coverage by pressing Test/Toggle
- Open Test Runner and run all editor tests
- Click Test/Cov to print coverage results
Actual result: Notice that hitCount for lines 26, 27 and 28 is 0
Using Coverage.GetStatsForAllCoveredMethods instead of Coverage.GetStatsFor will return correct hitCount. Open TestGenerics.cs, comment line 15 and uncomment line 16. Redo repro steps. Notice that now hitCount on lines 26, 27 and 28 is 1.
Reproduced with: 2021.3.4f1