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, Set<String> keywords)
|
|
공개 메서드 | |
|---|---|
void
|
addImportPaths(Set<String> paths)
|
void
|
addOption(TestOption option)
|
void
|
addSources(Set<String> sources)
|
boolean
|
equals(Object o)
|
boolean
|
getHostOnly()
|
Set<String>
|
getImportPaths()
|
Set<String>
|
getKeywords()
테스트에서 지원하는 키워드의 |
Set<String>
|
getKeywords(Set<String> ignoreKeywords)
테스트에서 지원하는 키워드의 |
String
|
getName()
|
String
|
getNameAndHostOnly()
테스트 이름과 호스트 설정을 나타내는 |
String
|
getNameOption()
테스트 이름과 옵션을 나타내는 |
List<TestOption>
|
getOptions()
|
Set<String>
|
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,
Set<String> keywords)| 매개변수 | |
|---|---|
name |
String |
source |
String |
hostOnly |
boolean |
keywords |
Set |
공개 메서드
addImportPaths
public void addImportPaths (Set<String> paths)
| 매개변수 | |
|---|---|
paths |
Set |
addSources
public void addSources (Set<String> sources)
| 매개변수 | |
|---|---|
sources |
Set |
같음
public boolean equals (Object o)
| 매개변수 | |
|---|---|
o |
Object |
| 반환 | |
|---|---|
boolean |
|
getHostOnly
public boolean getHostOnly ()
| 반환 | |
|---|---|
boolean |
|
getImportPaths
public Set<String> getImportPaths ()
| 반환 | |
|---|---|
Set<String> |
|
getKeywords
public Set<String> getKeywords (Set<String> ignoreKeywords)
테스트에서 지원하는 키워드의 Set을 가져옵니다.
| 매개변수 | |
|---|---|
ignoreKeywords |
Set: 무시할 키워드의 String 집합입니다. |
| 반환 | |
|---|---|
Set<String> |
|
getName
public String getName ()
| 반환 | |
|---|---|
String |
|
getNameAndHostOnly
public String getNameAndHostOnly ()
테스트 이름과 호스트 설정을 나타내는 String를 가져옵니다. 이렇게 하면 TestInfo를 기기의 요구사항 이름별로 그룹화할 수 있습니다.
| 반환 | |
|---|---|
String |
|
getSources
public Set<String> getSources ()
| 반환 | |
|---|---|
Set<String> |
|
hashCode
public int hashCode ()
| 반환 | |
|---|---|
int |
|
병합하다
public void merge (TestInfo test)
다른 테스트와 병합
두 테스트를 최대한 포괄적으로 포함하도록 테스트 옵션을 업데이트합니다.
TODO(b/113616538): 더 강력한 옵션 병합 메커니즘 구현
| 매개변수 | |
|---|---|
test |
TestInfo: 병합할 TestInfo 객체입니다. |
toString
public String toString ()
| 반환 | |
|---|---|
String |
|