覆盖选项
public final class CoverageOptions
extends Object
java.lang.Object | |
↳ | com.android.tradefed.testtype.coverage.CoverageOptions |
Tradefed 对象持有覆盖选项。
概括
嵌套类 | |
---|---|
enum | CoverageOptions.Toolchain
|
公共构造函数 | |
---|---|
CoverageOptions () |
公共方法 | |
---|---|
getCoverageProcesses () 在测试完成后返回要刷新覆盖率的进程名称。 | |
getCoverageToolchains () 返回要从中收集覆盖率的覆盖率工具链。 | |
File | getLlvmProfdataPath () 返回包含 llvm-profdata 工具的目录。 |
String | getProfrawFilter () 返回用于覆盖测量的 profdata 文件名的前缀。 |
boolean | isCoverageEnabled () 返回是否应从此运行中收集覆盖率测量值。 |
boolean | isCoverageFlushEnabled () 返回测试完成后是否应从正在运行的进程中刷新覆盖率测量。 |
boolean | shouldMergeCoverage () 返回是否在记录之前将覆盖率测量合并在一起。 |
boolean | shouldResetCoverageBeforeTest () 返回是否应在每次测试之前重置覆盖测量。 |
公共构造函数
覆盖选项
public CoverageOptions ()
公共方法
getCoverage工具链
publicgetCoverageToolchains ()
返回要从中收集覆盖率的覆盖率工具链。
退货 | |
---|---|
收集覆盖率的工具链 |
getLvmProfdataPath
public File getLlvmProfdataPath ()
返回包含 llvm-profdata 工具的目录。
退货 | |
---|---|
File | 包含 llvm-profdata 工具及其依赖项的ERROR(/File) |
获取ProfrawFilter
public String getProfrawFilter ()
返回用于覆盖测量的 profdata 文件名的前缀。
退货 | |
---|---|
String | 一个包含 profdata 文件名前缀的String |
isCoverageEnabled
public boolean isCoverageEnabled ()
返回是否应从此运行中收集覆盖率测量值。
退货 | |
---|---|
boolean | 是否收集覆盖测量 |
isCoverageFlushEnabled
public boolean isCoverageFlushEnabled ()
返回测试完成后是否应从正在运行的进程中刷新覆盖率测量。
退货 | |
---|---|
boolean | 是否在测试后刷新进程以进行覆盖率测量 |
应该合并覆盖
public boolean shouldMergeCoverage ()
返回是否在记录之前将覆盖率测量合并在一起。
退货 | |
---|---|
boolean |
shouldResetCoverageBeforeTest
public boolean shouldResetCoverageBeforeTest ()
返回是否应在每次测试之前重置覆盖测量。
启用此功能可以使覆盖范围更有针对性地进行测试。
退货 | |
---|---|
boolean | 测试前是否重置覆盖率 |
本页面上的内容和代码示例受内容许可部分所述许可的限制。Java 和 OpenJDK 是 Oracle 和/或其关联公司的注册商标。
最后更新时间 (UTC):2022-11-07。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"没有我需要的信息"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"太复杂/步骤太多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"内容需要更新"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻译问题"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/代码问题"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"易于理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"解决了我的问题"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]