matlab.unittest.constraints.Eventually 类
命名空间: matlab.unittest.constraints
超类: matlab.unittest.constraints.Constraint
测试函数是否以异步方式满足约束
描述
matlab.unittest.constraints.Eventually
类提供一个约束,该约束在超时期限内轮询函数句柄是否满足给定约束。
matlab.unittest.constraints.Eventually
类是一个 handle
类。
创建对象
描述
c = matlab.unittest.constraints.Eventually(
创建一个约束,该约束轮询函数句柄是否满足 constraint
)constraint
。如果在 20 秒的超时期限内,函数句柄产生了满足 constraint
的值,则满足约束 c
。
当 Eventually
等待函数句柄满足 constraint
时,测试框架更新图窗并处理任何挂起的回调。
c = matlab.unittest.constraints.Eventually(
创建一个约束,该约束在指定的超时期限内轮询 constraint
,"WithTimeoutOf",timeout
)constraint
是否得到满足。
输入参量
属性
示例
版本历史记录
在 R2013a 中推出