モジュールスプリッター
public class ModuleSplitter
extends Object
java.lang.オブジェクト | |
↳ | 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, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding) splitConfiguration ( TestInformation testInfo, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding) splitConfiguration ( TestInformation testInfo, runConfig, suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding) ロードされた構成のマップに基づいて、実行可能ユニット |
パブリックコンストラクター
モジュールスプリッター
public ModuleSplitter ()
パブリックメソッド
分割構成
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 のリスト |