ספליטר מודול
public class ModuleSplitter
extends Object
java.lang.Object | |
↳ | com.android.tradefed.testtype.suite.ModuleSplitter |
עוזר לפצל רשימה של מודולים המיוצגים על ידי IConfiguration
לרשימה של יחידות ביצוע המיוצגות על ידי ModuleDefinition
.
כל תצורה עשויה ליצור ModuleDefinition
1 או יותר בהתאם לאפשרויות ולסוגי הבדיקה שלה:
-
IConfiguration
שאינה ניתנת לחלוקה תיצורModuleDefinition
יחיד. -
IConfiguration
הניתנת לחלוקה תיצור מספר ModuleDefinition המקושרים למאפייני ה-IRemoteTest
:- בדיקה שאינה -
IShardableTest
יפיק ModuleDefinition יחיד. -
IShardableTest
יוצר ModuleDefinition אחד לכל בדיקות המוחזרות על ידיIShardableTest.split()
.
- בדיקה שאינה -
סיכום
בנאים ציבוריים | |
---|---|
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 | ERROR(/LinkedHashMap) נטען מ- ITestSuite#loadTests() . |
suitePreparersPerDevice | |
shardCount | int : רמז לספירת רסיסים כדי לעזור עם ריסוק. |
dynamicModule | boolean : האם ניתן לחלוק את המודול ב-pool או לא חייב להיות עצמאי (ריסוק קפדני). |
intraModuleSharding | boolean : האם לרסיס בתוך המודולים או לא. |
החזרות | |
---|---|
רשימה של ModuleDefinition |