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