Rust 測試庫
public abstract class RustTestBase
extends Object
implements IRemoteTest , ITestFilterReceiver , IAbiReceiver
java.lang.Object | |
↳ | com.android.tradefed.testtype.rust.RustTestBase |
RustBinaryHostTest 和 RustBinaryTest 的基類
概括
嵌套類 | |
---|---|
class | RustTestBase.EnvPair |
class | RustTestBase.Invocation
|
字段 | |
---|---|
protected long | mTestTimeout
|
公共構造函數 | |
---|---|
RustTestBase () |
公共方法 | |
---|---|
void | addAllExcludeFilters ( filters) addAllExcludeFilters ( filters) 添加要排除的測試的過濾器的 |
void | addAllIncludeFilters ( filters) addAllIncludeFilters ( filters) 添加要包含哪些測試的過濾器的 |
void | addExcludeFilter (String filter) 添加要排除哪些測試的過濾器。 |
void | addIncludeFilter (String filter) 添加要包含哪些測試的過濾器。 |
void | clearExcludeFilters () 刪除當前跟踪的所有排除過濾器。 |
void | clearIncludeFilters () 刪除當前跟踪的所有包含過濾器。 |
IAbi | getAbi () |
getExcludeFilters () 返回排除過濾器的當前 | |
getIncludeFilters () 返回包含過濾器的當前 | |
void | setAbi ( IAbi abi) |
受保護的方法 | |
---|---|
void | collectTestLines (String[] testList, foundTests) collectTestLines (String[] testList, foundTests) 在 testList 中查找測試用例名稱並將它們添加到 foundTests 中。 |
generateInvocations (File target) |
字段
測試超時
protected long mTestTimeout
公共構造函數
Rust 測試庫
public RustTestBase ()
公共方法
添加排除過濾器
public void addExcludeFilter (String filter)
添加要排除哪些測試的過濾器。
參數 | |
---|---|
filter | String |
添加包含過濾器
public void addIncludeFilter (String filter)
添加要包含哪些測試的過濾器。
參數 | |
---|---|
filter | String |
清除排除過濾器
public void clearExcludeFilters ()
刪除當前跟踪的所有排除過濾器。
清除包含過濾器
public void clearIncludeFilters ()
刪除當前跟踪的所有包含過濾器。
受保護的方法
收集測試線
protected void collectTestLines (String[] testList,foundTests)
在 testList 中查找測試用例名稱並將它們添加到 foundTests 中。
參數 | |
---|---|
testList | String |
foundTests |
生成調用
protectedgenerateInvocations (File target)
參數 | |
---|---|
target | File |
退貨 | |
---|---|
這個頁面中的內容和程式碼範例均受《內容授權》中的授權所規範。Java 與 OpenJDK 是 Oracle 和/或其關係企業的商標或註冊商標。
上次更新時間:2023-03-30 (世界標準時間)。
[{
"type": "thumb-down",
"id": "missingTheInformationINeed",
"label":"缺少我需要的資訊"
},{
"type": "thumb-down",
"id": "tooComplicatedTooManySteps",
"label":"過於複雜/步驟過多"
},{
"type": "thumb-down",
"id": "outOfDate",
"label":"過時"
},{
"type": "thumb-down",
"id": "translationIssue",
"label":"翻譯問題"
},{
"type": "thumb-down",
"id": "samplesCodeIssue",
"label":"示例/程式碼問題"
},{
"type": "thumb-down",
"id": "otherDown",
"label":"其他"
}]
[{
"type": "thumb-up",
"id": "easyToUnderstand",
"label":"容易理解"
},{
"type": "thumb-up",
"id": "solvedMyProblem",
"label":"確實解決了我的問題"
},{
"type": "thumb-up",
"id": "otherUp",
"label":"其他"
}]