CoverageOptions

public final class CoverageOptions
extends Object

java.lang.Object
   ↳ com.android.tradefed.testtype.coverage.CoverageOptions


Tradefed 物件,用於保留涵蓋範圍選項。

摘要

公用建構函式

CoverageOptions()

公用方法

List<String> getCoverageProcesses()

傳回測試完成後要從中清除涵蓋範圍的程序名稱。

List<CoverageOptions.Toolchain> getCoverageToolchains()

傳回要從中收集涵蓋範圍的涵蓋範圍工具鍊。

List<String> getDeviceCoveragePaths()

傳回裝置上儲存涵蓋範圍測量結果的位置。

File getJaCoCoAgentPath()

傳回 jacocoagent.jar。

File getLlvmProfdataPath()

傳回包含 llvm-profdata 工具的目錄。

String getProfrawFilter()

傳回用於涵蓋範圍測量的 profdata 檔案名稱前置字串。

long getPullTimeout()

傳回從裝置擷取涵蓋範圍指標的逾時時間 (以毫秒為單位)。

boolean isCoverageEnabled()

傳回是否應從這次執行作業收集涵蓋範圍測量結果。

boolean isCoverageFlushEnabled()

Returns whether coverage measurements should be flushed from running processes after the test has completed.

boolean shouldMergeCoverage()

Returns whether to merge coverage measurements together before logging.

boolean shouldResetCoverageBeforeTest()

Returns whether coverage measurements should be reset before each test.

公用建構函式

CoverageOptions

public CoverageOptions ()

公用方法

getCoverageProcesses

public List<String> getCoverageProcesses ()

測試完成後,傳回要從中清除涵蓋範圍的程序名稱。

傳回
List<String> 測試後要從中清除涵蓋範圍的程序名稱 List

getCoverageToolchains

public List<CoverageOptions.Toolchain> getCoverageToolchains ()

傳回要從中收集涵蓋範圍的涵蓋範圍工具鍊。

傳回
List<CoverageOptions.Toolchain> 要從中收集涵蓋範圍的工具鍊

getDeviceCoveragePaths

public List<String> getDeviceCoveragePaths ()

傳回裝置上儲存涵蓋範圍測量的位置。

傳回
List<String> 包含裝置涵蓋範圍路徑的 {link List}

getJaCoCoAgentPath

public File getJaCoCoAgentPath ()

傳回 jacocoagent.jar。

傳回
File 指向 jacocoagent.jar 的 File

getLlvmProfdataPath

public File getLlvmProfdataPath ()

傳回包含 llvm-profdata 工具的目錄。

傳回
File 包含 llvm-profdata 工具及其依附元件的 File

getProfrawFilter

public String getProfrawFilter ()

傳回用於涵蓋範圍測量的 profdata 檔案名稱前置字串。

傳回
String 包含 profdata 檔案名稱前置字元的 String

getPullTimeout

public long getPullTimeout ()

傳回從裝置擷取涵蓋範圍指標的逾時時間 (以毫秒為單位)。

傳回
long 以毫秒為單位的逾時時間 ERROR(/long)

isCoverageEnabled

public boolean isCoverageEnabled ()

傳回是否應從這次執行作業收集涵蓋範圍測量結果。

傳回
boolean 是否要收集涵蓋範圍評估資料

isCoverageFlushEnabled

public boolean isCoverageFlushEnabled ()

測試完成後,系統是否應從執行中的程序清除涵蓋範圍測量結果。

傳回
boolean 是否要在測試後清除程序,以進行涵蓋範圍測量

shouldMergeCoverage

public boolean shouldMergeCoverage ()

Returns whether to merge coverage measurements together before logging.

傳回
boolean

shouldResetCoverageBeforeTest

public boolean shouldResetCoverageBeforeTest ()

傳回是否應在每次測試前重設涵蓋範圍測量結果。

啟用這項功能後,涵蓋範圍就能更貼近測試。

傳回
boolean 是否要在測試前重設涵蓋範圍