TestInfo
public
class
TestInfo
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.util.testmapping.TestInfo |
存储 TEST_MAPPING 文件中设置的测试信息。
摘要
公共构造函数 | |
|---|---|
TestInfo(String name, String source, boolean hostOnly)
|
|
TestInfo(String name, String source, boolean hostOnly,
|
|
公共方法 | |
|---|---|
void
|
addImportPaths(
|
void
|
addOption(TestOption option)
|
void
|
addSources(
|
boolean
|
equals(Object o)
|
boolean
|
getHostOnly()
|
|
getImportPaths()
|
|
getKeywords(
获取测试支持的关键字的 |
|
getKeywords()
获取测试支持的关键字的 |
String
|
getName()
|
String
|
getNameAndHostOnly()
获取表示测试名称及其主机设置的 |
String
|
getNameOption()
获取一个 |
|
getOptions()
|
|
getSources()
|
int
|
hashCode()
|
void
|
merge(TestInfo test)
与其他测试合并。 |
String
|
toString()
|
公共构造函数
TestInfo
public TestInfo (String name,
String source,
boolean hostOnly)| 参数 | |
|---|---|
name |
String |
source |
String |
hostOnly |
boolean |
TestInfo
public TestInfo (String name,
String source,
boolean hostOnly,
keywords) | 参数 | |
|---|---|
name |
String |
source |
String |
hostOnly |
boolean |
keywords |
|
公共方法
addImportPaths
public void addImportPaths (paths)
| 参数 | |
|---|---|
paths |
|
addSources
public void addSources (sources)
| 参数 | |
|---|---|
sources |
|
equals
public boolean equals (Object o)
| 参数 | |
|---|---|
o |
Object |
| 返回 | |
|---|---|
boolean |
|
getHostOnly
public boolean getHostOnly ()
| 返回 | |
|---|---|
boolean |
|
getImportPaths
publicgetImportPaths ()
| 返回 | |
|---|---|
|
|
getKeywords
publicgetKeywords ( ignoreKeywords)
获取测试支持的关键字的 ERROR(/Set)。
| 参数 | |
|---|---|
ignoreKeywords |
:要忽略的一组 String 关键字。 |
| 返回 | |
|---|---|
|
|
getName
public String getName ()
| 返回 | |
|---|---|
String |
|
getNameAndHostOnly
public String getNameAndHostOnly ()
获取一个 String,表示测试名称及其主机设置。这样,TestInfo 就可以按设备上的名称要求进行分组。
| 返回 | |
|---|---|
String |
|
getOptions
publicgetOptions ()
| 返回 | |
|---|---|
|
|
getSources
publicgetSources ()
| 返回 | |
|---|---|
|
|
hashCode
public int hashCode ()
| 返回 | |
|---|---|
int |
|
合并
public void merge (TestInfo test)
与其他测试合并。
更新测试选项,以便测试尽可能涵盖这两项测试。
TODO(b/113616538):实现更强大的选项合并机制。
| 参数 | |
|---|---|
test |
TestInfo:要与之合并的 TestInfo 对象。 |
toString
public String toString ()
| 返回 | |
|---|---|
String |
|