覆盖选项
public final class CoverageOptions
extends 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 () 返回测试完成后是否应从正在运行的进程中清除覆盖测量。 |
公共构造函数
覆盖选项
public CoverageOptions ()
公共方法
获取覆盖工具链
publicgetCoverageToolchains ()
返回要从中收集覆盖率的覆盖率工具链。
退货 | |
---|---|
收集覆盖范围的工具链 |
获取LlvmProfdataPath
public File getLlvmProfdataPath ()
返回包含 llvm-profdata 工具的目录。
退货 | |
---|---|
File | 一个ERROR(/File) 含有LLVM-profdata工具及其依赖 |
获取ProfrawFilter
public String getProfrawFilter ()
返回用于覆盖率测量的 profdata 文件名的前缀。
退货 | |
---|---|
String | 一个String 包含profdata文件名的前缀 |
isCoverageEnabled
public boolean isCoverageEnabled ()
返回是否应从此运行中收集覆盖测量。
退货 | |
---|---|
boolean | 是否收集覆盖测量 |
isCoverageFlushEnabled
public boolean isCoverageFlushEnabled ()
返回测试完成后是否应从正在运行的进程中清除覆盖测量。
退货 | |
---|---|
boolean | 是否在测试后刷新用于覆盖测量的进程 |
Content and code samples on this page are subject to the licenses described in the Content License. Java and OpenJDK are trademarks or registered trademarks of Oracle and/or its affiliates.
Last updated 2021-10-04 UTC.
[{
"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":"其他"
}]