In the above code snippet, we check for the expected user role.
在上面的代码片段中,我们检查是否有预期的用户角色。
If you return a null array, the clients of the code must write extra code to check whether the return value is null (as shown in Listing 13).
如果您返回零数组,该代码的客户端必须编写额外的代码来检查返回值是否为零(如清单13所示)。
Once this is done for all the use cases, we analyze the Implementation Model of the code to check if some logical grouping of the classes (files) already exists in the code.
一旦对所有用例都完成了,我们就分析代码的实现模型来检查某些类(文件)的逻辑分组是否已经在代码中存在。
This is immensely useful during component testing, as you can identify untested code and check it before it is shipped.
这在组件测试中非常有用,如你可以在封装之前确认未测试代码并检查它。
More nasty code to check of the remote file we're uploading to exists.
更令人厌恶的代码,用于检查即将上载的远程文件是否存在。
The first thing that this code does is check to see if you are online or offline.
这个代码所做的第一件事就是检查您是在线还是离线。
Developers can use coverage reports to check code quality before attempting to modify it.
开发人员可以在试图修改代码之前使用覆盖报告来检查代码质量。
They can place markers in the code and check the elapsed time it takes to complete certain operations.
可以在代码中放上标志,检查完成特定操作所需要的时间间隔。
One of these days, you dispenser of depraved dementia, you are going to check in code that doesn't check its preconditions, and it's going to cost someone dearly!
这些天来,你一直在这样作,一直在签入没有检查其前置条件的代码,而这样作的结果就是某些人将要付出沉重的代价。
A machine check reason code usually indicates a hardware problem (for example, bad memory).
机器检查原因代码通常表示硬件问题(比如,内存损坏)。
Listing 2 is the sample code to check the state of the window.
清单2是检查窗口状态的样例代码。
For more on this particular example code, check the Resources section at the end of this article.
有关此特定示例代码的详细信息,请参阅本文结尾的参考资料部分。
A Servant may never check in unreleasable code on the work branch.
“仆人”不能向工作分支中检入不可发布的代码。
Check the code archive for details.
有关详细信息,请查阅代码归档文件。
It's much easier to include the code to check for the exception than to try to debug a crash later on.
添加异常检测代码要比在事后尝试调试崩溃简单很多。
The first three lines of code check out the latest version of sqlalchemy and add it as a package to the Python installation on your local system.
前三行代码检查最新版本的sqlalchemy,并将它作为包添加到您本地系统的Python安装中。
To see just how effective my tests are at exercising the code, I can check code coverage with Hansel.
为了看看上述测试在检验这块代码时效果如何,我可以用Hansel检查代码覆盖情况。
CodeToGo can't execute code locally, so an Internet connection is required to check your code.
CodeToGo无法在本地执行代码,所以需要连网才可以对代码进行检查。
我该把代码检入到哪里?
Type this code in yourself, or check out the full listing (see Download).
亲自输入此代码,或查看完整清单(参阅下载)。
Merge down the latest from the work branch, and check in your code.
从工作分支中取得并合并最新的代码,然后检入你的代码。
Then write your code to check for and protect itself from that weird data.
然后,编写代码来检查这些恶意数据以保护自身免受这些数据的破坏。
I will add some code to check if the current connection supports GZIP.
我将添加一些代码来查看当前的连接是否支持GZIP。
Solution: Check-in code frequently throughout the day.
解决方案:全天频繁地签入代码。
This contradicts the desire to check your code quality on a daily basis.
这一点与每天检查代码质量的愿望背道而驰。
What prompted you to start doing code reviews on each check-in?
你出于什么原因开始为每次代码提交都进行代码复审?
If the tools automated the bookkeeping in this way, it would help make the team more effective by ensuring that the important connections between bug reports and code check-ins are reliable.
如果工具以这种方式自动化簿记工作,则能通过确保错误报告与代码签入之间的重要联系是可靠的,从而帮助提高团队的工作效率。
All that remains to do is add code to check the user-specified values, and then use these values to perform the desired action.
余下的工作是添加代码以检查用户指定的值,然后使用这些值执行所需的操作。
For instance, you can set up your CI system to execute a build that only runs unit tests during code check-ins (which is often referred to as a commit build).
例如,可以设置CI系统执行构建(通常称作提交构建),该构建只在代码签入时运行单元测试。
Import or check out source code.
导入或签出源代码。
应用推荐