One way would be to create an array of booleans, one for each line of the original method, and add code that sets the appropriate flag as each line is executed.
可以使用的一种方法是创建一个布尔值数组,初始方法中的每一行代码对应一个布尔值,然后添加代码,每执行一行代码就设置相应的标志。
One way to determine the success or failure of the function testing is by counting the line commands that have failed, that is, that have a return code different than 0.
决定功能测试成功还是失败的一种方法是计算已失败行命令的数量,即返回码不是0。
He comes with his legacy on the line, measured in one indisputable and defining way: Before he beats him in the NBA Store, LeBron James needs to beat Kobe Bryant in the NBA Finals.
他距离传奇只有一线之隔,明白无误并起关键作用的一条线:在他在NBA商店中击败科比之前,勒布朗·詹姆斯需要在NBA总决赛中击败科比。
One way newcomers can influence groups is by displaying loyalty, toeing the line and by creating psychological distance from previous group affiliations.
而对于新来者,想要影响群体的途径在于显示你的忠诚,顺服,并创造出你与之前的群体联系上的心理距离。
One aims to extend the line that runs from Paris to Le Mans all the way to Rennes, the capital of Brittany.
一项工程的目标是把巴黎至勒芒的线路延伸到布列塔尼省的省会雷恩。
One line of analysis is that the younger Kim has to put a few notches in his belt by ordering some attacks on the South, the way his father once built up a little credibility.
有一种分析认为,小金必须通过下令攻击南韩来树立威信,就象他父亲当初建立信誉的方式一样。
One of my protects is we can embed the Numbers in a very fine line. And it's very very difficult or confident to modify the lead or any other way to alter it.
我的一个保护方式是嵌入一些数字,字很小,很难,也没有保证,能篡改痕迹,其他方式也不可以。
The slip last basically looks like the upper is wrapped all the way around the foot and there is one line of stitching down the middle of the shoe under the insole.
这种鞋楦一般来说鞋面包裹着整个脚,在鞋底中部有一条缝合线。
Now, there's a cost-effective means of seeing how usable your pages are: Userfly, a simple way to test your site's usability for free - with one line of code.
现在有了一个更好的办法测试网页的可用性,Userfly,你可以用它免费测试你的网站可用性,并且只需要一行代码。
Ten 100-line code reviews are much nicer to do than one 900-line one, and doing it that way will save a great deal of work finding and fixing bugs.
十个100行的代码审核要比一个900行的来得轻松得多,拆分着做会节省很多寻找修正bug的工作量。
In this way, you can set up a sequence of strings, each being one line from a file.
这样就建立了一个字符串序列,各个字符串分别对应文件中的一行。
Along one side a scruffy fence lent drunkenly one way then the other, while a brutally straight line of six-foot high boards marked the other side of the territory.
沿着花园的一边有一排破旧的篱笆,像喝醉了似的东倒西歪。直直的一排木板,足有六英尺高,无情地把花园另一边的区域隔开。
While it could have been written as a loop, the one-line solution is much cleaner that way, and does not slow the program down significantly.
虽然我们本来可以把它写成循环,但是长度只有一行的解决方案要清楚得多,并且不会显著降低程序运行的速度。
"No one wants to carry the ball 99 yards all the way to the one-yard line, and then give it to the halfback who gets all the credit," one state senator complained to a local journalist.
一位州参议员对一名当地记者抱怨说,“没有人想带着球一口气跑99码,却在最后一码把球交给前卫,让后者独享风光。”
Price is low and the next one is on its way, so just a matter of time, it's also made from small craft We are working on a leather line.
价格低廉,我们很快会推出,下一款产品,也是牛皮制品,当下所有的产品都是皮具。
From the famous first line - "All happy families are alike; each unhappy family is unhappy in its own way" - we know there is only one place this story is heading and it isn't to a happy ending.
从著名的第一句——“幸福的家庭都是相似的,不幸的家庭各有各的不幸。”——我们知道这个故事只有一个不幸福的结局。
You enter this command on one line, by the way, although it's broken into two here to fit the developerWorks format.
顺便说一下,必须在一行上输入该命令,这里是为了适应developerWorks 格式才将它分成两行。
This is one way to configure the properties; in the absence of command-line or code-driven setup, the client will use values from jndi.properties.
这是配置属性的一种方法,如果缺少命令行或者代码驱动的设置,那么客户机将使用jndi . properties中的值。
He's one of the guys that when we start getting out of line, he really, not in a negative way, but kind of settles everyone down and makes sure that we know how important each and every game is.
他是这样一个人,当我们开始偏离方向时,他并不会以一种消极的方式,而是设法解决好每个人的问题并确保让我们知道每场比赛是多少重要。
Using dynamic programming theory for optimized staking of transmission line in sections is one effective way to obtain the comprehensive optimum economic indexes for transmission line construction.
应用动态规划理论进行输电线路分段优化排位是找出输电线路建设最佳综合性经济指标的一种有效途径。
The practice proves that to arrange bridge pier in the direction along flow is one of effect way for solving water stop problem of multi line skew bridge abutment pier.
实践证明顺水流方向布置桥墩是解决多线斜交桥墩台阻水问题的有效途径之一。
The spike was obvious. "It was narrow, it was near the hydrogen line … but it didn't last long enough to confirm one way or another, " she said sadly. "We'll probably never know.
尖尖的波峰非常明显,“波长很短,接近氢谱线……但是,它持续的时间不够长,无法确定是哪个方向”她遗憾的说,“也许我们永远也无法知道。”
Price partitioning is one of management of pricing on-line ; and reference price is also the common way on Internet.
价格划分,是管理线上定价的方法之一;参考价格的应用亦是网路上常见的行销方式。
So, bottom line: one way to deal with a buyer's market may be to pick an exact list price to begin with.
所以,底线是:一种与卖家打交道的方式就是你先提供一个精确的价格。
From the DS1820 to read out the information or write to DS1820 information, I only need one line (one-way interface).
从ds1820读出的信息或写入DS1820的信息,仅需要一根口线(单线接口)。
From the DS1820 to read out the information or write to DS1820 information, I only need one line (one-way interface).
从ds1820读出的信息或写入DS1820的信息,仅需要一根口线(单线接口)。
应用推荐