Now, let's force an error into the pool.
现在,让我们强制执行一个错误到池中。
Trying to achieve full coverage is often a waste of time; if you have to spend hours trying to force tests to exercise error conditions and exceptional cases, you get diminishing returns.
试图实现完全承保常常是浪费时间,如果您花上几个小时去测试错误情况和异常情况,您的受益会减少。
The SIGNAL statement is used to explicitly raise an error and force the invocation of a handler.
signal语句用于显式地发出一个错误并强制调用处理程序。
应用推荐