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 を取得します。

Set<String> getKeywords(Set<String> ignoreKeywords)

テストでサポートされているキーワードの Set を取得します。

String getName()
String getNameAndHostOnly()

テスト名とそのホスト設定を表す String を取得します。

String getNameOption()

テスト名とそのオプションを表す String を取得します。

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

addOption

public void addOption (TestOption option)

パラメータ
option TestOption

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 を取得します。

戻り値
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

getNameOption

public String getNameOption ()

テスト名とそのオプションを表す String を取得します。

戻り値
String

getOptions

public List<TestOption> getOptions ()

戻り値
List<TestOption>

getSources

public Set<String> getSources ()

戻り値
Set<String>

hashCode

public int hashCode ()

戻り値
int

merge

public void merge (TestInfo test)

別のテストと統合します。

テストのオプションを更新して、両方のテストで可能な限り最高のカバレッジを実現します。

TODO(b/113616538): より堅牢なオプション統合メカニズムを実装します。

パラメータ
test TestInfo: マージする TestInfo オブジェクト。

toString

public String toString ()

戻り値
String