So double bar means if this condition or this one — and maybe even both — are true, go down this road and execute that code.
所以复纵线意思是,如果这两个条件之一-,或者两个都——是成立的,那就继续,执行后面的代码。
Creation of the rule essentially means creating the rule target and the condition; these are also demonstrated with their own code listings.
创建规则实质上意味着创建规则目标和条件,这些都使用它们自己的代码清单作了说明。
You can measure code coverage in several ways: by assessing line or statement coverage, condition coverage, branch coverage, and so on.
您可以通过许多方法来测量代码覆盖率:通过评估代码行或语句的覆盖面、条件覆盖面、分支覆盖面等等。
If a user is not authenticated when trying to access this resource, the user will receive a 401 status code and the application can provide a special error handler to deal with that condition.
如果用户在尝试访问这个资源时还没有经过身份验证,那么用户会收到401状态码,应用程序可以提供一个特殊的错误处理函数来处理这种情况。
The programmer can immediately see if a condition is not going to be met and take corrective measures before running the code.
这样程序员就可以立即得知条件是否得到满足,并在运行代码之前进行一定调整。
Figure 3 shows the results of running the example code above, showing the results of a "memory condition: memory leak" condition.
图3显示了运行上述示例代码的结果,其中显示了“内存条件:内存溢出”条件的结果。
The code in Listing 4 illustrates creation of the condition.
清单4中的代码说明了条件的创建。
Fundamentally, each of these does exactly the same thing: it tests a condition, and if true, continues to execute the block of code provided.
它们做的基本上是同一件事:测试一个条件,如果该条件为真,则继续执行提供的代码块。
Sometimes a piece of code is called many times, even from different threads, but you only want to stop in that code if a particular condition is met.
有时有一段代码会得到多次的重复访问,有时甚重由不同的线程访问,但是如果达到某种特定的状况时,您只想停止其中的一段代码。
Based on the condition, the code selects the appropriate type of object to handle the request.
根据条件,代码将选择相应类型的对象来处理请求。
In this example, the code block is iterated until the loop is broken through the condition.
在此示例中,代码块迭代,直至循环根据条件而中断。
This code generates the following JSON data shown in Listing 8, assuming an error condition is present.
这些代码生成如清单8所示的JSON数据,假设给出了一个错误条件。
Even after isolating a problem down to a few crucial lines of code, it can be difficult to untangle the interleaved events required to make a race condition or deadlock occur.
甚至在确定了会产生问题的几行关键代码后,依旧难以解耦那些会导致竞态条件或者死锁的交叉存取事件。
This technique makes the code easier to read and externalizes the condition so it can be abstracted and perhaps even reused.
这个技巧能够提高代码的可读性,并且能够将条件具体化,使之能够被提取甚至重用。
In this code, we perform the lookup and then check for an error condition.
这段代码用于执行查找并检查错误条件。
For example, the code in Listing 1 contains an if condition that may execute rarely.
例如,清单1中的代码包含一个可能很少发生的if条件。
This action may be used by WebSphere MQ monitoring tools that detect the queue or media full condition prior to the application receiving the return code.
WebSphereMQ监视工具可能采取此操作,此类工具会在应用程序检索到相应的返回代码前检测到队列或介质已满的情况。
So in other words, if thankful is still false at this point, it means this condition did not work out very well, and so I'm going to do this block of code again.
换句话说,如果thankful在这时候还是false值,这表示这个条件没有实现地很好,所以我将再次去处理这段代码。
When the SPU code finishes or hits a critical error condition, it stops executing and the host process returns from the ioctl call.
当SPU代码执行完成或碰到严重的错误条件时,就会停止执行,宿主进程也会从ioctl调用中返回。
After all, in theory, the if simply checks a condition, and if the condition is true, executes the block of code that follows.
毕竟,从理论上说,if只检查一个条件。如果条件为真,则执行后面跟着的代码。
Then we call the exit() function with an error code; for this utility, we've chosen to return different numbers for every different error condition.
随后我们用错误码调用exit()函数;对于本实用程序,我们已经选择了对每个不同错误条件返回不同数字。
This means you can use a condition in place of a value, which can result in simpler and cleaner code. In Blue, a condition takes the form
这意味着您能使用条件来代替值,可使代码更简单、更干净。
I have found that adopting TFP helps prevent analysis paralysis, that condition that makes us afraid to write code because we don't yet know all of the constraints and possible problems we might face.
我发现采用TFP可以防止出现没有内容的分析,以及由于我们不了解所有的限制和所面临的所有可能出现的问题而害怕去撰写代码的情形。
In this example, I've attempted to capture an error condition when compiling source code.
在这个示例中,我要捕获源代码编译时的错误条件。
Transparency: The pre - and post-condition code isn't mixed with business logic.
透明性:前置和后置条件代码不与业务逻辑混合。
Assertions allow you to perform common comparisons and condition testing to examine how code is running.
断言允许你执行常规比较和条件测试来检测代码如何运行。
If the test evaluates to false, that is, the condition has validated successfully, then the transformation code is executed.
如果test语句的值等于false,也就是说验证成功,那么就会执行转换代码。
Code satisfies the membership condition if it is signed by the software publisher with the private key that corresponds to the specified public key certificate.
如果代码由具有与指定公钥证书对应的私钥的软件发行者签名,则该代码满足成员条件。
A block of code that must be executed in sequence and without interruption to guarantee correct operation of the software. See also race condition.
一段必须按次序执行的代码,并且不能被中断,否则不能保证软件正确地操作。参照:竞争状况。
A block of code that must be executed in sequence and without interruption to guarantee correct operation of the software. See also race condition.
一段必须按次序执行的代码,并且不能被中断,否则不能保证软件正确地操作。参照:竞争状况。
应用推荐