For every code module, you should have a set of unit tests that exercises each of its methods.
对于每个代码模块,你应当有测试其所有方法的一组单位测试。
The code itself does not change, but the module metadata needs to.
代码本身没有改变,但是需要修改模块的元数据。
Task 2: Create a PHP code module to do the necessary business logic and the DB calls.
任务2:创建一个PHP代码模块来执行必需的业务逻辑和数据库调用。
Write the code for the module, including a module installer, a data-entry form, and a display template.
编写模块代码,包括模块安装程序,一个数据输入表单和一个呈现模板。
You can use the output from this custom code module in the HTTP request that you use for the movie search.
你可以使用来自搜索电影的HTTP请求中的自定义代码模块中的输出结果。
The ability to capture such requirements in a single code module, improving traceability.
在单个代码模块中捕捉这样需求的能力,提升可追踪能力。
In a small JSP application, it is common to see the data, business logic, and the user interface combined into one module of code.
在小型JSP应用程序中,经常会看到数据、业务逻辑和用户界面被组合在一个代码模块中。
You will develop a PHP code module to provide the core bank logic with the necessary database access using ODBC.
我们开发一个PHP代码模块来提供核心银行逻辑,并使用ODBC进行必要的数据库访问。
Since a custom code module can only run in the context of a test, you will create a simple test that contains nothing except the code module.
由于一个自定义代码模块只能在一个测试环境中运行,因此您需要创建一个除了代码模块不包含任何其它东西的简单测试。
Listing 4 shows the code in the application module needed to lookup the created database connection pool.
清单4显示了在应用程序模块中查找创建的数据库连接池所需的代码。
The code in the custom login module is almost the same as the code from Scenario 5 used in the application.
这个自定义登录模块的代码与场景5中使用的应用程序中的代码几乎完全相同。
Listing 2 shows the code for the search module.
列表2显示了此搜索模块的代码。
Listing 7 shows the code for the module file that registers a URL as a source of tests and results.
清单7显示这个模块文件的代码,它注册一个URL作为测试和结果的源。
Cohesion, refers to the principle that inside a given module, all the code should work to accomplish a single goal.
内聚原则是指一个模块内部的所有代码应该只完成一个目标。
Development standards provide a set of reusable, common sense guidelines that developers should follow when delivering a code module or component.
开发标准提供一组可重用的常识性指导原则,开发人员在交付代码模块或组件时应该遵循这些指导原则。
The download ZIP file contains the completed EAR module and the code listings used in this tutorial.
下载ZIP文件包含完成的EAR模块和本教程中用到的代码清单。
Until you remove the code, the module remains in the module administration page, where, if you desire, you could re-enable the module.
除非您删除了代码,否则模块都会保留在模块管理页面上,并且可以重新启用该模块。
WSDL and code generation: This module takes care of generating client stub and server skeleton code from the WSDL file.
WSDL和代码生成:此模块从WSDL文件中生成客户端存根和服务器框架代码。
The SQL module must also contain the format template code as shown in Listing 2.
SQL模块也必须包含格式模板代码,如 清单2 所示。
For application where plain JCR code is required, the JCR module allows the transparent use of a transaction driven session with code that USES the JCR API directly.
对于要求普通JCR代码的应用程序,JCR模块允许用直接使用JCRAPI的代码,透明地使用事务驱动会话。
You'll get more details about our module, including specific examples of code.
您将详细地了解我们的模块,包括代码示例。
Task 6: Create a PHP code module that will act as a REST service to front-end the calls to the business logic in the other two PHP files.
任务6:创建一个PHP代码模块,它将作为REST服务,将调用转发给另外两个PHP文件中的业务逻辑。
You can use the macro editor to edit the content of the module to add the simple program code, and then you can save the new module with the macro.
您可以使用宏编辑器编辑模块内容,添加简单的程序代码,然后使用宏保存新的模块。
A localization pack manager is the code module that manages the locating, loading, and accessing of a localization pack's resources.
本地化包管理器是管理本地化包资源的定位、装入和访问的核心模块。
If it's not required to unload a module after it's loaded, you can make several optimizations to reduce the amount of code needed for module management.
如果不需要在加载之后卸载模块,那么可以进行一些优化,减少模块管理所需的代码。
A module has metadata, an installer, code, and templates.
一个模块拥有元数据、一个安装程序、代码和几个模板。
To install a new module, download its code from its project page, extract it, and copy the module to Drupal's module subdirectory.
要安装新的模块,从它的项目页面下载模块代码,然后解压缩代码并将模块复制到Drupal的模块的子目录中。
FUSE is a mechanism that allows you to implement file systems in user space without kernel code (other than the FUSE kernel module and existing file system code).
FUSE是一种机制,允许您在没有内核代码(除FUSE内核模块和现有的文件系统代码以外)情况下在用户空间中实现文件系统。
You see how to use the Linux key retention service in a kernel module using sample code.
您将通过示例代码了解如何在内核模块中使用Linux密钥保留服务。
In the commit method of the login module, a privileged code clears up the current subject and replaces the principals, and the public and private credentials.
在登录模块的commit方法中,可以使用特权代码清除当前主题并替换相应的主体、公开的和私有的凭据。
应用推荐