模块测试类型实用程序
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。 |