ModuleSplitter

public class ModuleSplitter
extends Object

java.lang.Object
com.android.tradefed.testtype.suite.ModuleSplitter


IConfiguration で表されるモジュールのリストを、実行 ユニットのリストに分割するヘルパー。ModuleDefinition で表されます。

各構成では、オプション とテストタイプに応じて 1 つ以上の ModuleDefinition が生成される場合があります:

概要

パブリック コンストラクタ

ModuleSplitter()

パブリック メソッド

static List<ModuleDefinition> splitConfiguration(TestInformation testInfo, LinkedHashMap<String, IConfiguration> runConfig, Map<String, List<ITargetPreparer>> suitePreparersPerDevice, int shardCount, boolean dynamicModule, boolean intraModuleSharding)

読み込まれた構成のマップに基づいて、実行可能ユニット ModuleDefinition のリストを作成します。

パブリック コンストラクタ

ModuleSplitter

public ModuleSplitter ()

パブリック メソッド

splitConfiguration

public static List<ModuleDefinition> splitConfiguration (TestInformation testInfo, 
                LinkedHashMap<String, IConfiguration> runConfig, 
                Map<String, List<ITargetPreparer>> suitePreparersPerDevice, 
                int shardCount, 
                boolean dynamicModule, 
                boolean intraModuleSharding)

読み込まれた構成 のマップに基づいて、実行可能ユニット ModuleDefinition のリストを作成します。

パラメータ
testInfo TestInformation: シャーディングを進める現在の TestInformation

runConfig LinkedHashMap: ITestSuite.loadTests() から読み込まれた LinkedHashMap

suitePreparersPerDevice Map: テストデバイスごとのスイートレベルの準備ツールのマップ。

shardCount int: シャーディングに役立つシャード数のヒント。

dynamicModule boolean: モジュールをプールで共有できるか、独立している必要があるか (厳密なシャーディング)。

intraModuleSharding boolean: モジュール内でシャーディングするかどうか。

戻り値
List<ModuleDefinition> ModuleDefinition のリスト