模組測試類型實用程式
public class ModuleTestTypeUtil
extends Object
java.lang.Object | |
↳ | com.android.tradefed.util.ModuleTestTypeUtil |
包含用於檢查模組的常用實用方法。
概括
領域 | |
---|---|
public static final String | TEST_TYPE_KEY |
public static final String | TEST_TYPE_VALUE_PERFORMANCE
|
公共構造函數 | |
---|---|
ModuleTestTypeUtil () |
公共方法 | |
---|---|
static | getMatchedConfigTestTypes ( IConfiguration config, testTypesToMatch) getMatchedConfigTestTypes ( IConfiguration config, testTypesToMatch) 取得配置的聲明測試類型與允許清單中的符合項目。 |
static boolean | isPerformanceModule ( IConfiguration config) 檢查配置是否為效能模組。 |
領域
測試類型鍵
public static final String TEST_TYPE_KEY
TEST_TYPE_VALUE_PERFORMANCE
public static final String TEST_TYPE_VALUE_PERFORMANCE
公共構造函數
模組測試類型實用程式
public ModuleTestTypeUtil ()
公共方法
取得匹配配置測試類型
public staticgetMatchedConfigTestTypes (IConfiguration config, testTypesToMatch)
取得配置的聲明測試類型與允許清單中的符合項目。
參數 | |
---|---|
config | IConfiguration :要檢查的設定。 |
testTypesToMatch |
退貨 | |
---|---|
配置的匹配測試類型或空列表(如果沒有匹配)。 |
是效能模組
public static boolean isPerformanceModule (IConfiguration config)
檢查配置是否為效能模組。
參數 | |
---|---|
config | IConfiguration :要檢查的設定。 |
退貨 | |
---|---|
boolean | 如果配置是效能模組,則為 true。 |