Visual Studio 代码覆盖率报告与报告生成器相比存在差异。我的“Abc.cs”文件共有 60 行。
Visual Studio 2019 中的 Abc.cs 文件代码覆盖率报告 (.coverage)
1] Covered lines -> 23
2] Not covered lines -> 1
3] Covered lines % -> 92.00
4] Covered blocks -> 29
5] Not Covered blocks -> 2
6] Covered blocks % -> 93.55
ReportGenerator 中的 Abc.cs 文件代码覆盖率报告
1] Covered lines -> 24
2] Not covered lines -> 1
3] Covered lines % -> 96.00
4] Covered blocks -> 18
5] Not Covered blocks -> 2
6] Covered blocks % -> Not available
line 和 block 和有什么不一样?为什么这两个报告中同一文件的行号和块号不同?
请提供一些清晰度。提前致谢。