ספליטר מודול

public class ModuleSplitter
extends Object

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


עוזר לפצל רשימה של מודולים המיוצגים על ידי IConfiguration לרשימה של יחידות ביצוע המיוצגות על ידי ModuleDefinition .

כל תצורה עשויה ליצור ModuleDefinition 1 או יותר בהתאם לאפשרויות ולסוגי הבדיקה שלה:

סיכום

בנאים ציבוריים

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 על סמך מפת התצורה שנטענה.

בנאים ציבוריים

ספליטר מודול

public ModuleSplitter ()

שיטות ציבוריות

פיצול תצורה

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

צור רשימה של יחידות ההפעלה ModuleDefinition על סמך מפת התצורה שנטענה.

פרמטרים
testInfo TestInformation : ה- TestInformation הנוכחי כדי להמשיך בפיצוץ.

runConfig : ERROR(/LinkedHashMap) נטען מ- ITestSuite#loadTests() .

suitePreparersPerDevice : מפה של מכינים ברמת הסוויטה לכל מכשיר בדיקה.

shardCount int : רמז לספירת רסיסים כדי לעזור עם ריסוק.

dynamicModule boolean : האם ניתן לחלוק את המודול ב-pool או לא חייב להיות עצמאי (ריסוק קפדני).

intraModuleSharding boolean : האם לרסיס בתוך המודולים או לא.

החזרות
רשימה של ModuleDefinition