ModuleTestTypeUtil
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,
获取与许可名单中的测试类型匹配的配置的声明测试类型。 |
static
boolean
|
isPerformanceModule(IConfiguration config)
检查配置是否为性能模块。 |
字段
TEST_TYPE_KEY
public static final String TEST_TYPE_KEY
TEST_TYPE_VALUE_PERFORMANCE
public static final String TEST_TYPE_VALUE_PERFORMANCE
公共构造函数
ModuleTestTypeUtil
public ModuleTestTypeUtil ()
公共方法
getMatchedConfigTestTypes
public staticgetMatchedConfigTestTypes (IConfiguration config, testTypesToMatch)
获取配置中声明的测试类型,并在许可名单中找到匹配项。
参数 | |
---|---|
config |
IConfiguration :要检查的配置。 |
testTypesToMatch |
:要匹配的测试类型。 |
返回 | |
---|---|
|
配置的匹配测试类型,如果没有匹配项,则返回一个空列表。 |
isPerformanceModule
public static boolean isPerformanceModule (IConfiguration config)
检查配置是否为性能模块。
参数 | |
---|---|
config |
IConfiguration :要检查的配置。 |
返回 | |
---|---|
boolean |
如果配置是性能模块,则为 true。 |