第一种方法是对代码进行一套完全彻底的单元测试:在重构之前和之后都必须通过这样的测试。
One way is to have a thorough set of unit tests for the code: the code should pass the tests both before and after refactoring.
就业数据在就业市场跌至绝对低点之前和之后的月份表现起伏不定,这种状况并不罕见。
Uneven performance for jobs in the months both before and after the absolute low point in the labor market is not uncommon.
以下是某些具有职业接触史,并感染了HIV病毒的工作人员的病例,但他们在可能受感染的接触之前和之后都没有立即进行检测。
These are cases in which a worker is infected with HIV and has a history of occupational exposure, but did not have a test immediately before and after the possible exposure.
怀着能够理解恐惧记忆形成过程的分子基础的希望,这个研究小组进一步检测了暴露在响亮声音之前和之后,杏仁核神经回路中的蛋白质。
In hopes of understanding the molecular underpinnings of fear memory formation, the team further examined the proteins in the nerve cells of the amygdala before and after exposure to the loud tone.
最后一个研究案例是海地发生去年毁灭性地震之前和之后的的安全状况。
The last case study looks at the security situation in Haiti both before and after last year's devastating earthquake.
普雷斯科特·布什,即乔治·h·w·布什的父亲、乔治·w·布什的爷爷,在担任美国参议员之前和之后都曾是这家银行的合伙人。
Prescott Bush, father of George H. W. Bush and grandfather of George W. Bush, served there as a partner both before and after his tenure in the U.S. Senate.
为了观察被试当时的真实感受,研究者已经在他们写这些简短描述之前和之后秘密地对他们进行了测量。
To see how they were feeling in the moment, participants were given surreptitious measures both before and after writing these short descriptions.
开发者进行重构的两个关键时机是:在实现一个功能之前和之后。
Two key opportunities exist for developers to refactor: before and after implementing a feature.
以下是DB2BATCH运行样例摘要,说明启动行压缩之前和之后的查询执行时间。
Following are DB2BATCH run sample summaries illustrating query execution times before and after row compression has been enabled.
你需要确定你在跑步之前和之后都吃的正确,甚至可能包括你跑步过程中所吃的食物——如果你要进行的是马拉松之类的耐力项目。
You'll need to make sure you're eating properly before your runs, after your workouts, and possibly even during your runs, if you're training for an endurance event such as a marathon.
您可以通过比较查询RUNSTATS之前和之后的EXPLAIN输出,来确定运行RUNSTATS对于访问计划的影响。
You can determine the effects of running RUNSTATS on the access plans by comparing the EXPLAIN outputs of the queries before and after RUNSTATS.
下面是升级之前和之后一个LPAR的输出。
Refer to the output below, from one of the LPARs before and after the upgrade.
我将介绍在POWER 6升级之前和之后执行的步骤。
I will outline the steps I performed before and after the POWER6 upgrade.
如果扩展了LDAP模式,那么必须维护修改,并在修改之前和之后备份整个目录。
If you have extended LDAP schema, you must maintain the changes and back up the entire directory prior to and after the change.
罗丹着重描绘的是欲之爱,就像荷加斯的那两幅画:《之前》和《之后》。
Rodin's depiction insists on the carnality of love. So do Hogarth's paired paintings Before and After.
类在方法调用之前和之后必须保持不变(一旦对象已经构建)。
A class invariant must hold before and after all method calls (once the object is constructed).
转化之前和之后声明的比较。
在模型更改之前和之后添加实现。
为了最小化processServer模块配置数据出现不一致性的风险,我们建议在部署BPEL模块之前和之后对Process Server配置进行备份。
To minimize the risk of a Process Server module configuration data inconsistency, we recommend backing up the Process Server configuration before and after the deployment of the BPEL modules.
您可以下载改进之前和之后的示例应用程序源代码,也可以在作者的Web服务器上查看两个版本的运行效果。
You can download the before and after source code for an example application and see both versions in action on the author's Web server.
图19显示了选择具体类型(ExtensionBO)之前和之后的抽象业务对象(AbstractBO)。
Figure 19 shows an abstract business object (AbstractBO) before and after you select a concrete type (ExtensionBO).
单击options选项卡,指定测试时间间隔,包含测试之前和之后的一段时间。
Click the Options TAB, and specify the interval of your test, including some time before and after the test.
我们使用一个静态类,其中包含在XmlObject更改之前和之后运行的方法,见清单3。
You use a static class that has methods that run before and after the XmlObject changes, as shown in Listing 3.
在SAP中,在转移之前和之后运行lsconf命令,从而确认物理服务器已经改变了。
From within SAP, run the lsconf command before and after the migration to confirm that the physical server has changed.
无状态的handler是在Target之前和之后都将被执行。
StatelessAround handlers are executed both before and after the target is executed.
最后,不变条件测试使用around建议,在该建议中,在连接点执行之前和之后都计算测试,同时具有前面提到过的例外。
Finally, invariant tests use around advice, where the tests are evaluated both before and after join point execution with the exceptions noted previously.
对于每个活动,它在服务方法调用之前和之后提供hook能力。
For each activity, it provides the ability to hook in before and after invocation of the service method. The invocation life cycle is.
在本例中,我们来看报告的属性,并使用FlashCompareTool来确保报告在软件更新之前和之后看起来完全相同。
In this example we will go to the properties of a report and use the Flash Compare Tool to make sure that the report looks exactly the same before and after the software update.
在将变更的配置应用到环境的之前和之后,要备份实例配置。
Back up the instance configuration before and after changes are made to the configuration of the environment. To back up an instance, record all details related to the following.
在将变更的配置应用到环境的之前和之后,要备份实例配置。
Back up the instance configuration before and after changes are made to the configuration of the environment. To back up an instance, record all details related to the following.
应用推荐