Test above allows the test case code to run only if this file is run as a command.
测试使得只有当文件作为命令运行时才运行测试用例代码。
Running unit tests assures that test case code will continue to find and return the correct objects.
运行单元测试确保测试用例能继续找到并返回正确的对象。
You do not have to write special-case code to handle different database management systems (DBMSs).
您不一定要撰写用来处理不同资料库管理系统 (DBMS) 的特定状况程式码。
Warning signs - watch out for tests that change frequently, boomerangs, test slippage, just in case code and shotgun surgery.
频繁改动的测试、退回返工、测试延误、以防万一的代码以及霰弹式修改(即到处修改)。
However, even noncancelable tasks should attempt to preserve the interrupted status in case code higher up on the call stack wants to act on the interruption after the noncancelable task completes.
但是,即使是不可取消的任务也应该尝试保留中断状态,以防在不可取消的任务结束之后,调用栈上更高层的代码需要对中断进行处理。
In this case, I rotate the line around the center of the movie with the code shown below.
在本例中,我用下面所示的代码使这条直线围绕动画的中心旋转。
In one case, the professor didn't require students to buy a textbook, just an access code to turn in homework.
有一次,教授并没有要求学生购买教科书,只是需要作业提交的访问码。
Another case is where the client code could be doing other things while it waits for the called service to complete.
另一个情况是客户端代码能在等待被调用服务完成的同时能干些别的事情。
So, when react receives a Notify or a “stop” message all of the code for that case is executed.
因此,当收到一个通知或一个“停止”消息时,所有用于这一情况的代码将被执行。
In this case, you tell the filter code to pay attention to the parameter count, and it should be 0.
在这种情况下,您告诉过滤器代码要注意参数的数量,并且它应当为0。
In such a case, instead of including code snippets to do this check at each component, enforcing a global standard is easier.
在这种情况下,与其在每个组件中包含代码片段来检查,还不如强制实行一个全局标准更为容易。
Or, in the case of interpreted languages, the debugger may interpret code directly.
或者,在使用解释语言的情况下,调试器可以直接解释代码。
It's probably the case in your organization that code spends more time waiting for someone to test it than being tested.
在你的机构里也许实情是这样的,比起已经被测试的情况,代码则是花更长的时间等待着被测试。
In this case, your transaction demarcation code is intermixed with code that implements the business logic.
在这种情况下,事务界定代码与实现业务逻辑的代码混杂在一起。
For example, the key could be a unique user ID, a stock symbol or, in our case, a zip (postal) code.
例如,主键可以是一个唯一的用户ID、一个股票符号,在我们的实例中,主键是一个邮政编码。
In either case, your code covers you and ensures that you get all the content you're looking for.
不管是什么情况,代码都会处理它并保证您得到要查找的所有内容。
If for some reason this isn't the case, compare your code with Listing 1 to make sure you have all the correct commands.
如果由于一些原因这没有发生,把你的代码与列表1中的进行比较,确保你的所有命令都是正确的。
In this case, I use the PHP code to create a series of tags-one for each page in the table.
在本例中,我使用PHP代码创建了一系列标记—一个标记用于表格中的一个页面。
This will demonstrate that although the user's experience does not change in either case, the code complexity varies a lot.
这将说明,虽然在任何一个应用程序中用户的体验没有变化,但代码复杂性发生了很大变化。
Change in test code: a test case that you added to improve code coverage may be causing the slowdown, possibly exercising a peculiar portion that is vulnerable to speed.
测试代码的变更:您增加的用来改善代码覆盖率的测试用例可能导致变慢,也有可能这部分代码特别容易影响速度。
In this case, the code in Listing 5 would change to that shown in Listing 6.
在这种情况下,清单5中的代码应该改为清单6。
So what you typically do and a hash case is you design your code to deal with that.
你所需要做的就是通过设计你的代码,来解决上面的问题。
In either case, you can code up a row of the ca as a binary number.
不管是哪种情况,都可以将CA的一行作为二进制数相加。
From the AOP standpoint, it's clearly best to keep the aspect information (in this case, binding definitions) outside the code.
AOP的立场来看,最好是把方面信息(在该例是绑定定义)放在代码之外。
In the case of the code I've been using for this article, there's a major error in the interaction between the two loops in the constructor.
对于我在本文中用到的代码,构造函数中两个循环之间的相互作用中存在一个重大错误。
Note that the cas must be executed in a loop, because it may fail one or more times before succeeding, which is always the case with code that USES cas.
注意,要在循环中执行CAS,因为它可能会失败一次或多次才能获得成功,使用CAS的代码总是这样。
Internally, the case management asset sample code stores the sequence number on the CaseNumber custom object.
在内部,案例管理资产示例代码把序号存储在定制对象CaseNumber中。
In this particular case, the application code was constructed for deployment to WebLogic Server 6.1.
在这个特定的案例中,应用程序源码是为了部署WebLogic Server6.1而构造的。
Similarly, you can use the EJB reference wizard to create an EJB local reference, in which case the code looks like this.
类似地,用户可以使用EJB引用向导创建e JB本地引用,代码如下。
In this case, the code has actually specified all the members of cluster c1 where the EJB is residing.
在本例中,代码实际上已经指定了EJB所在的集群c1的所有成员。
应用推荐