ModuleSplitter

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 بناءً على خريطة التكوين التي تم تحميلها.

المقاولين العامة

ModuleSplitter

public ModuleSplitter ()

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

SplitConfiguration

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