SonarQube中的 Metric Definition — Tests
度量指标 | 算法和说明 |
条件覆盖率 Condition coverage(branch_coverage) | On each line of code containing some boolean expressions, the condition coverage simply answers the following question: 'Has each boolean expression been evaluated both to true and false?'. This is the density of possible conditions in flow control structures that have been followed during unit tests execution.
|
新代码的条件覆盖率 Condition coverage on new code ( |
与条件覆盖率相同,但仅限于新的/更新的源代码。 Identical to Condition coverage but restricted to new / updated source code. |
条件覆盖命中率 Condition coverage hits</ |