覆蓋範圍選項
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 () 返回測試完成後是否應從正在運行的進程中刷新覆蓋率測量。 |
公共構造函數
覆蓋範圍選項
public CoverageOptions ()
公共方法
getCoverage工具鏈
publicgetCoverageToolchains ()
傳回用於收集覆蓋率的覆蓋率工具鏈。
退貨 | |
---|---|
用於收集覆蓋範圍的工具鏈 |
取得LlvmProf資料路徑
public File getLlvmProfdataPath ()
傳回包含 llvm-profdata 工具的目錄。
退貨 | |
---|---|
File | 包含 llvm-profdata 工具及其相依性ERROR(/File) |
取得ProfrawFilter
public String getProfrawFilter ()
傳回用於覆蓋率測量的 profdata 檔案名稱的前綴。
退貨 | |
---|---|
String | 包含 profdata 檔名前綴的String |
已啟用覆蓋範圍
public boolean isCoverageEnabled ()
傳回是否應從此運行中收集覆蓋率測量結果。
退貨 | |
---|---|
boolean | 是否收集覆蓋測量 |
isCoverageFlushEnabled
public boolean isCoverageFlushEnabled ()
返回測試完成後是否應從正在運行的進程中刷新覆蓋率測量。
退貨 | |
---|---|
boolean | 測試後是否刷新覆蓋率測量流程 |
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-12-01 (世界標準時間)。
[{
"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":"其他"
}]