您可以通过许多方法来测量代码覆盖率:通过评估代码行或语句的覆盖面、条件覆盖面、分支覆盖面等等。
You can measure code coverage in several ways: by assessing line or statement coverage, condition coverage, branch coverage, and so on.
还必须考虑测试的类型,结合成功路径和边界条件,来获得尽可能好的覆盖率。
You have to also consider the types of tests, with both happy paths and boundary conditions, to have the best possible coverage.
报告分支覆盖的工具试图度量决策点(比如包含逻辑AND或OR的条件块)的覆盖率。
Tools that report branch coverage attempt to measure the coverage of decision points, such as conditional blocks containing logical ANDs or ORs.
为帮助确保得到足够的覆盖率,测试既在实验室条件下也在模拟的用户情形下进行。
Tests are conducted under laboratory conditions, as well as under simulated customer scenarios, to help ensure adequate coverage.
在室温条件下,一个月之后矿物质在酵母表面的覆盖率超过了80%。
The mineral coating kept more than 80 percent of the yeast cells alive after a month at room temperature.
该研究发现,仅仅利用气候条件不能解释不同地区林木覆盖率的差异。
The study found that climate conditions alone could not explain the amount of tree cover in different areas. Nor could the size of nearby populations, meaning people and trees can live together.
在总木素含量相同的条件下,非木浆的表面木素覆盖率要高于针叶木浆。
At the same bulk lignin content level, the surface lignin coverage was found to be higher in the non - wood pulp than in the softwood pulp.
实验表明,在稍微降低故障覆盖率的条件下,本文提出的测试方法能显著降低测试的峰值功耗,同时也能降低平均功耗和能耗。
The experiments show that the proposed method can reduce peak power, average power and energy simultaneously at the cost of a little fault coverage dropping.
实验表明,在稍微降低故障覆盖率的条件下,本文提出的测试方法能显著降低测试的峰值功耗,同时也能降低平均功耗和能耗。
The experiments show that the proposed method can reduce peak power, average power and energy simultaneously at the cost of a little fault coverage dropping.
应用推荐