Does the code check return values of all functions which it calls?
代码是否检查了他们调用的函数的返回值?
You can set up code check-in policy to require code analysis to be run as part of the check-in policy.
您可以设置代码签入策略,要求将代码分析作为签入策略的一部分运行。
This means they aren't run every time during a test run, such as in a code check-in within a CI environment.
这意味着,在运行一个测试时不必每次都运行 JUnitPerf 测试,例如在一个CI环境中签入代码。
This paper mainly presents the principle of cyclic code check and indicates the range it reached as well as its implementation.
本文着重介绍循环码校验的原理,以及循环码校验所能检错的范围和实现循环码校验的方法。
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安装中。
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系统执行构建(通常称作提交构建),该构建只在代码签入时运行单元测试。
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.
如果工具以这种方式自动化簿记工作,则能通过确保错误报告与代码签入之间的重要联系是可靠的,从而帮助提高团队的工作效率。
I built a tool that lets you browse a catalog of patterns, bind them to your code, and statically check your use of the pattern.
我开发了一个工具,它可用来浏览模式,将你的代码与它们绑定起来,用它来静态地检查你对模式的使用。
In the above code snippet, we check for the expected user role.
在上面的代码片段中,我们检查是否有预期的用户角色。
Next, we check the result code to see if this event relates to a successful query.
接下来,检查结果代码,看看这个事件是否与成功的查询有关。
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.
这在组件测试中非常有用,如你可以在封装之前确认未测试代码并检查它。
The first thing that this code does is check to see if you are online or offline.
这个代码所做的第一件事就是检查您是在线还是离线。
This activity can be triggered either manually or automatically — either at fixed intervals or incrementally as programmers check in code.
这种行为可通过手动或者自动的方式启动——或者间隔固定的时间或者由程序员检查代码。
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.
可以在代码中放上标志,检查完成特定操作所需要的时间间隔。
Check-out code from a repository.
从存储库签出代码。
In one example, 16 lines of code were used to check the value of an attribute.
在某个示例中,使用16行代码检查一个属性的值。
All that remains to do is add code to check the user-specified values, and then use these values to perform the desired action.
余下的工作是添加代码以检查用户指定的值,然后使用这些值执行所需的操作。
Note that this code is careful to check to see if the various controls have been disposed before they are used.
注意,此代码小心地进行检查,看各种控件在使用之前是否已经就绪。
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!
这些天来,你一直在这样作,一直在签入没有检查其前置条件的代码,而这样作的结果就是某些人将要付出沉重的代价。
Check with the supplied source code for naming conventions.
检查为命名约定提供的源代码。
The connected desktop allows the developer to analyze their code locally before check in and with exactly the same accuracy and context as during integration build analysis.
联机桌面允许开发人员在签入之前进行本地代码分析,并且可以保证具有和集成构建分析相同的准确性和上下文环境。
Listing 6 shows the main parts of the test code I'll use to check out the performance.
清单6显示用于检查性能的测试代码的主要部分。
For more on this particular example code, check the Resources section at the end of this article.
有关此特定示例代码的详细信息,请参阅本文结尾的参考资料部分。
In this simple example, the delete method of the customer class contains appropriate code to check if one or more orders for this customer still exist.
在这个简单的例子中,客户类的delete方法包含检查该客户的一个或多个订单是否依然存在的适当代码。
It's much easier to include the code to check for the exception than to try to debug a crash later on.
添加异常检测代码要比在事后尝试调试崩溃简单很多。
You could mark the fields transient, but the class would still have to explicitly produce code to check whether a field was initialized every time a method accessed it.
可以将字段标记为transient,但是每当有方法访问一个字段时,类仍然必须显式地产生代码来检查它是否被初始化。
You could mark the fields transient, but the class would still have to explicitly produce code to check whether a field was initialized every time a method accessed it.
可以将字段标记为transient,但是每当有方法访问一个字段时,类仍然必须显式地产生代码来检查它是否被初始化。
应用推荐