还了解了代码单元和基于字符的函数的概念。
You also learned about the concept of code units and character-based functions.
在这一部分,所有代码单元都将是PID或进程。
可以使用一个或多个各自编码的代码单元来表示字符。
A character can be represented using one or more of the code units of a respective encoding.
当使用两个16位代码单元序列表示字符时,将该字符称为代理对。
When a character is represented using a sequence of two 16-bit code units, it's called a surrogate pair.
该函数包含两个参数,第一个参数是字符串,而第二个参数是代码单元。
The function includes two arguments, the first one being the string and second one the code units.
理论上讲,这个代码片段(或者说是代码单元)是源代码中最小的可测试部分。
Theoretically, this piece, or unit, should be the smallest testable portion of source code.
此部分与Process部分的不同之处在于,它将进程代码分为了更小的代码单元。
This section differs from the process section in that it subdivides the process code into smaller code units.
如果查看ProjectManager,您将发现包括了三个附加的源代码单元。
If you examine the Project Manager, you'll see that there are three additional source code units that have been included.
代码单元的类型是PID,节拍数是 1612,占总节拍数的百分比是 53.27。
The type of code unit is PID, the number of ticks is 1612, and the percentage of total ticks used is 53.27.
在程序语言中,语法包含了一个抽象的模型,所有格式良好的代码单元(即源文件)都必须匹配这个模型。
With a programming language, the grammar contains an abstract model that all well-formed units of code (that is, source files) must match.
除了输入字符串之外,SUBSTRING函数还有其他三个参数,它们分别是:起始位置、长度和代码单元指定。
Along with the input string, the SUBSTRING function has three other arguments, which are start position, length, and code unit specification.
此工作是通过以下方式实现的:将受影响的代码单元复制到公用框架中,并将其引用的所有数据对象放置到公共数据接口中。
You do this by copying the impacted code units into a common framework and placing all of the data objects they refer to into a common data interface.
使用CODEUNITS16或CODEUNITS32计算代码单元得到的结果是相同的,除非使用了增补字符和代理对。
Counting code units using either CODEUNITS16 or CODEUNITS32 gives the same answer, unless supplementary characters or a surrogate pair is involved.
然后,它生成一个报告,列出这些代码单元每个获得了多少个“节拍(tick)”(即当代码的特定单元正在运行时发生了多少次系统时钟中断)。
Then it generates a report that lists how many "ticks" each of these units of code received (how many times a system-clock interrupt occurred when that particular unit of code was running).
WebSphereESBV6.2引入了DataHandlers来解决这个问题,并且它们使您能够编写单一的代码单元来处理跨不同传输接收的消息。
WebSphere ESB V6.2 introduces Data Handlers to address this issue, and they let you write a single unit of code to process messages received across a number of transports.
使用增补字符时,对于一个增补字符,使用CODEUNITS16 计算是两个UTF-16代码单元,而使用CODEUNITS32 计算则是一个 UTF-32 代码单元。
When supplementary characters are involved, a supplementary is counted as two UTF-16 code units using CODEUNITS16, or one UTF-32 code unit using CODEUNITS32.
通过生成代码覆盖率的具体数值,Cobertura将单元测试从一种艺术转变为一门科学。
By producing hard Numbers for code coverage, Cobertura transforms unit testing from an art to a science.
这个名称背后的思想是软件开发的最佳实践,例如编写单元测试和代码复查。
The idea behind the name is that there are best practices for software development, such as writing unit tests and code reviews.
因而,您和您的团队开始质疑单元测试的价值:如果它们对代码质量那么重要,那又为什么会让人这么头痛呢?
Consequently, you and your team have begun to question the value of unit tests: if they are so important to code quality, why are they such a pain?
当您改变代码、单元测试并执行UAT时,应该识别瓶颈并根据需要进行改进。
As you change code, unit test, and perform UAT, you should identify bottlenecks and implement changes as needed.
作为一个有用的副作用,它还能为我们带来代码的单元测试和说明文档。
As a useful side-effect, it also provides us with unit testing and documentation of our code.
此活动也包括修复代码缺陷和执行单元测试,以验证变更。
The activity also involves fixing code defects and performing unit tests to verify the changes.
这样得到的代码更易于做单元测试、易于替代、易于维护、易于修改等等。
The result is code that is easy to unit test, easy to substitute, easy to maintain, easy to change, etc.
如果只要更改代码即运行单元测试,您立即就能发现您所做的更改是否对系统造成了破坏。
If you run unit tests whenever you make changes to code, you'll find out immediately if your changes broke something.
这意味着您可以在不同的情况下使用它:单元测试、生产代码,等等。
This means that you can use it in any number of different circumstances: unit tests, production code, and so on.
他列举了大量的示例,以说明读者如何将费解的、耦合的代码放进单元测试中。
He presents numerous examples to show how the reader can place even the most convoluted and tightly coupled code into a unit test harness.
Blogito仍然不足200行代码—并且这还包含了单元和集成测试。
Blogito is still fewer than 200 lines of code - and that includes the unit and integration tests.
如果开发人员具有自动的代码级单元测试工具,开发人员就能够很容易地运行这些工具以确保所做的更改不会破坏已经存在的功能。
If the developer has access to automated code level unit tests, the developer can easily run them to make sure the changes don't break existing function.
如果没有对代码进行单元测试,那么在升级或支持新浏览器后,组织可能需要花钱反复测试Web应用程序。
Without unit testing this code, organizations may pay for repeated testing of web applications after upgrading or supporting new browsers.
CODEUNITS16和CODEUNIST32作为字符串单元可能导致代码页转换。
The CODEUNITS16 and CODEUNIST32 as string units may cause code page conversions.
应用推荐