Line coverage: the percentage of lines covered in the class file.
行覆盖率:类文件中覆盖的行百分比。
It turns out that line coverage isn't such a great indicator of test effectiveness.
这表明行覆盖的确不能很好地指示测试的有效性。
The report in Figure 4 shows that I've achieved 75% line coverage and 100% branch coverage.
在图4的报告中显示我达到了 75% 的行覆盖率和 100% 的分支覆盖率。
Do not like on-line coverage of those endless, as imposed after its poison to meet anyone.
不会如网上那些层出不穷的报道那样,网友见面后对其施加毒害。
Like the annotated source report, the annotated differences report shows line-by-line coverage information.
就像注释源报告一样,注释差异报告会一行行的显示复盖率信息。
There are different types of coverage measurements, but most tools focus on line coverage, also known as statement coverage.
存在不同类型的覆盖度量,但是绝大多数的工具会关注行覆盖,也叫做语句覆盖。
This report lists the source files whose percentage of line coverage are lower than a specified minimum threshold level.
该报告列出了哪一个源文件的代码行覆盖率百分比,低于特定的最低阀值水平。
If a method is 10 lines long and 8 lines of the method were exercised in a test run, then the method has a line coverage of 80%.
如果一个方法有10行代码,其中的8行在测试中被执行,那么这个方法的行覆盖率是80%。
Non-executable lines such as comments are not annotated and do not contribute to the calculation of the line coverage percentage.
诸如评论之类的非执行行不会被注释,并不会对代码行覆盖率百分比的计算产生影响。
Importing XML data - If you import Code coverage data from an XML file, you can only see statistics for line coverage, not block coverage.
汇入xml资料:如果您从XML档案汇入程序码涵盖范围资料,则只会看到程序码行涵盖范围的统计资料,而非程序码区块涵盖范围的统计资料。
The process works at the aggregate level as well: If a class has 100 lines and 45 of them were touched, then the class has a line coverage of 45%.
这个过程在总体层次上也工作得很好:如果一个类有100行代码,其中的45行被触及,那么这个类的行覆盖率就是45%。
HierarchyBuilder's constructor is private, however, so I can't test it via my test class (nor do I care to); therefore, my line coverage still hovers at 88%.
然而,因为HierarchyBuilder的构造器是private类型的,所以我不能通过我的测试类测试它(我也不关心)。因此,我的行覆盖率仍然只有88%。
Let's see an example of how to write a simple report script that prints the line coverage percentage for a specific function within a program. The script syntax is.
让我们看一下怎样书写一个简单的报表脚本,该脚本在一个项目中为一个特定的函数记下行覆盖率百分比。
Just like line coverage, if there are two branches in a particular method and both were covered through tests, then you could say the method has 100% branch coverage.
与行覆盖一样,如果在特定方法中有两个分支,并且两个分支在测试中都被覆盖,那么您可以说这个方法有100%的分支覆盖率。
Specializing in Manufacturing Timing Chain, Transmission Chain, Timing Kits And Hub Bearing Units, Full Line Coverage Of Universal Joint, Brake Pads And Brake Parts.
专业生产时规链条、传动箱链条,时规套件及轮毂单元,经营全系列汽车万向节、刹车片及刹车部件。
Likewise, if a code base comprises 10,000 non-commenting lines of code and 3,500 of them were exercised on a particular test run, then the code base's line coverage is 35%.
同样,如果一个代码库包含10000个非注释性的代码行,在特定的测试运行中有3500行被执行,那么这段代码的行覆盖率就是35%。
However, if you re-import this XML file and then merge it with additional code coverage data, only the statistics on line coverage are retained, not the statistics on block coverage.
不过,如果您重新汇入这个xml档,并将它与其他程序码涵盖范围资料合并,则只会保留程序码行涵盖范围的统计资料,而不会保留程序码区块涵盖范围的统计资料。
Theoretically, if you write code only to satisfy an existing test, then by definition you can achieve coverage for every line of code you write.
理论上说,如果为满足现有的测试而撰写代码,那么您肯定能够实现对您所写的每行代码的覆盖。
Theoretically, if you write code only to satisfy an existing test, then by definition you can achieve coverage for every line of code you write.
理论上说,如果为满足现有的测试而撰写代码,那么您肯定能够实现对您所写的每行代码的覆盖。
It produces reports down to the individual line level; but for testers it is usually best to capture, summarize, and trend the coverage data at the file or subdirectory level.
它可以产生单线水平的报告;但是对于测试人员来说,在文档或者子目录水平通常是最容易捕捉、总结,并趋向覆盖数据的。
You can measure code coverage in several ways: by assessing line or statement coverage, condition coverage, branch coverage, and so on.
您可以通过许多方法来测量代码覆盖率:通过评估代码行或语句的覆盖面、条件覆盖面、分支覆盖面等等。
A code coverage tool reports test coverage — either in the form of line or branch coverage — that represents the amount of code that is being touched when a test is run.
代码覆盖工具可报告测试覆盖率——以行覆盖或分支覆盖形式表示——它表示测试运行时所涉及的代码量。
Notice the line and branch coverage percentages by package.
请注意行覆盖和分支覆盖的百分比是以包计算的。
Once every method has at least one test, use a code coverage tool, such as Cobertura, to write one test for every branch until each line of code is tested.
当每个方法都有了至少一个测试,使用一个代码覆盖率工具如cobertura为每个分支编写一个测试,直到每一行代码都能够被测试。
This can identify areas of the project that achieve less coverage over time, to show where testing needs to expand in line with code changes and added features.
这样可以识别在项目整个运行时间中覆盖较少范围的区域,可以显示测试的什么位置需要按行展开有代码变更和增添新特征的区域。
To increase coverage, this land-line sample was supplemented by respondents reached through random dialing of cellphone numbers. The two samples were then combined.
为了增加覆盖率,除了陆上电话局抽取的样本外,调查者还随意拨打了一些手机号,并把两种样本结合起来统计。
In order to install landscape irrigation that works, you will need a landscape expert who understands terms like coverage, line pressure, backflow prevention, and isolation.
为了安装景观灌溉的作品,你需要一个景观专家,谁知道像覆盖面,线的压力,回流预防和隔离。
The bottom line is that their opinions are of little help, and the related coverage omits all discussion of their lack of predictive value.
最关键的一点是专家的意见其实并没有什么帮助,相关的报道也会忽略所有关于专家意见缺乏预测价值的讨论。
Deans and Rothenberg selected the tight pattern control of M 'elodie line array loudspeakers to deliver the precise coverage needed, with four hangs of five boxes, flown tight to the ceiling.
迪安斯和罗滕伯格选择了紧凑型Melodie线阵列扬声器来满足精准覆盖角扩声需求,配置为5箱体一列,共4列紧吊装在顶棚。
Deans and Rothenberg selected the tight pattern control of M 'elodie line array loudspeakers to deliver the precise coverage needed, with four hangs of five boxes, flown tight to the ceiling.
迪安斯和罗滕伯格选择了紧凑型Melodie线阵列扬声器来满足精准覆盖角扩声需求,配置为5箱体一列,共4列紧吊装在顶棚。
应用推荐