ModuleSplitter
public
class
ModuleSplitter
extends Object
| java.lang.Object | |
| ↳ | com.android.tradefed.testtype.suite.ModuleSplitter |
IConfiguration で表されるモジュールのリストを、ModuleDefinition で表される実行ユニットのリストに分割するヘルパー。
各構成は、オプションとテストタイプに応じて 1 つ以上の ModuleDefinition を生成する場合があります。
- シャーディングできない
IConfigurationは、単一のModuleDefinitionを生成します。 - シャーディング可能な
IConfigurationは、IRemoteTestプロパティにリンクされた複数の ModuleDefinition を生成します。IShardableTest以外の場合は、単一の ModuleDefinition が生成されます。IShardableTestは、IShardableTest.split()によって返されたテストごとに 1 つの ModuleDefinition を生成します。
概要
パブリック コンストラクタ | |
|---|---|
ModuleSplitter()
|
|
パブリック メソッド | |
|---|---|
static
|
splitConfiguration(TestInformation testInfo,
読み込まれた構成のマップに基づいて、実行可能なユニット |
パブリック コンストラクタ
ModuleSplitter
public ModuleSplitter ()
パブリック メソッド
splitConfiguration
public staticsplitConfiguration (TestInformation testInfo, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding)
読み込まれた構成のマップに基づいて、実行可能なユニット ModuleDefinition のリストを作成する。
| パラメータ | |
|---|---|
testInfo |
TestInformation: シャーディングを続行する現在の TestInformation。 |
runConfig |
: ITestSuite.loadTests() から読み込まれた ERROR(/LinkedHashMap)。 |
suitePreparersPerDevice |
: テストデバイスごとのスイートレベルの準備ツールのマップ。 |
shardCount |
int: シャーディングに役立つシャード数のヒント。 |
dynamicModule |
boolean: モジュールをプールで共有できるかどうか、または独立している必要があるかどうか(厳密なシャーディング)。 |
intraModuleSharding |
boolean: モジュール内でシャーディングするかどうか。 |
| 戻り値 | |
|---|---|
|
ModuleDefinition のリスト |