الوحدة النمطية

public class ModuleSplitter
extends Object

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


يساعد في تقسيم قائمة الوحدات التي يمثلها IConfiguration إلى قائمة وحدات التنفيذ التي يمثلها ModuleDefinition .

قد يُنشئ كل تكوين تعريف 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)

قم بإنشاء قائمة بالوحدات القابلة للتنفيذ ModuleDefinition s بناءً على خريطة التكوين التي تم تحميلها.

المنشأت العامة

الوحدة النمطية

public ModuleSplitter ()

الأساليب العامة

الانقسام

public static  splitConfiguration (TestInformation testInfo, 
                 runConfig, 
                 suitePreparersPerDevice, 
                int shardCount, 
                boolean dynamicModule, 
                boolean intraModuleSharding)

قم بإنشاء قائمة بالوحدات القابلة للتنفيذ ModuleDefinition s بناءً على خريطة التكوين التي تم تحميلها.

حدود
testInfo TestInformation : TestInformation الحالية للمتابعة مع التجزئة.

runConfig : تم تحميل ERROR(/LinkedHashMap) من ITestSuite#loadTests() .

suitePreparersPerDevice : خريطة معدي مستوى الجناح لكل جهاز اختبار.

shardCount int : تلميح عدد الأجزاء للمساعدة في التجزئة.

dynamicModule boolean : ما إذا كان يمكن مشاركة الوحدة النمطية في التجمع أو يجب أن تكون مستقلة (التجزئة الصارمة).

intraModuleSharding boolean : ما إذا كان سيتم القطع داخل الوحدات النمطية أم لا.

عائدات
قائمة ModuleDefinition