Just like line coverage, if there are two branches in a particular method and both were covered through tests, then you could say the method has 100% branch coverage.
与行覆盖一样,如果在特定方法中有两个分支,并且两个分支在测试中都被覆盖,那么您可以说这个方法有100%的分支覆盖率。
Add another method, and name it parse_line, with two input parameters - line and argv - along with a return parameter with int as the type. (see Figure 5).
添加另外一种方法,并将其命名为parse_line,其两个输入参数为—line和argv—以及一个int的返回参数(见于图5)。
The extra list element is actually added in line two of the append_options method.
额外的list元素实际上添加到 append_options方法的第二行。
The use of aliases is my preferred method for using namespaces for two reasons: First, if I later rename the namespace, I only have one line of code to change per source file.
由于两个原因,我喜欢对名称空间使用别名:首先,如果以后要改变名称空间,在每个源代码文件中只有一行需要修改。
In a line or two, you're going to need a method in that interface.
在一两行内,您将会用到该接口中的方法。
Finally, our header method draws a two-point black line all the way across the page's content area at the bottom of the header.
最后,我们的Header方法在标题的底部绘制了一条两点黑线,一直穿过页面的内容区域。
Two strata cutting methods were suggested, the grid cutting method to be used for horizontal and sloped sections, and the intersection line cutting method for vertical sections.
提出了地层的任意方向切割方法,即适用于水平截面和斜截面的网格分割法和适用于竖直截面的交线分割法。
An equivalent two source phase domain method for calculating interline fault in the double circuit line is presented.
基于二端口网络理论,采用等值双端电源相分量法进行跨线短路故障计算。
Regarding the reciprocal lattice primitive cells basic vectors as two line space basic vectors, this paper finds a new matrix method to work out the reciprocal lattice primitive cell.
视正格子原胞基矢和倒格子原胞基矢为线性空间的两个基底,提出了求解倒格子原胞的一种新的矩阵算法。
In this paper, we propose and discuss two new control methods for three phase shunt APFs: the sinusoidal line current control method and the instantaneous reactive power compensation control method.
本论文提出三相并联型有源滤波器的两种新的控制方法,即正弦波化控制和瞬时无功功率的控制方法。
This paper proposed a new method to find the intersection line and determine its visibility of two general position planes using overlapped projection lines.
提出用重影线法求解两一般位置平面相交求交线判别可见性的新方法。
The experiments , comparison and analysis for the three thickness measurement methods :two-beam diffraction method , contamination spot method and contamination line method were carried out.
前言:对用电子显微镜测量薄膜厚度的三种方法:双束衍射法、污斑法、污线法进行了实验及比较分析。
With the ordinary camber used as auxiliary cross section, the line of intersection of two biasing single cambers is worked out in a view with the method for line of nodes.
本文以一般位置平面为辅助截平面,用求迹线方法,在一个视图求作两单曲面偏交交线。
The intersection visibility rule of a line and general plane was concluded and a new judge method on intersection visibility of two general place planes was also put forward in this paper.
同时,阐述两平面相交交线的空间位置情况,从而得出两平面相交可见性判断的新方法。
I research on two methods of crack width calculating, one is through the center line and left-right edges, the other only through left-right edges, and make the latter as the method of this project.
对由中心线和左右边缘求裂缝宽度和由左右边缘求裂缝宽度两种方法进行了研究,采用后者作为本课题的计算方法。
Experiments have indicated that alternating active rotation and ultrasonic based guidance method can align two robots in one line, and ready for docking.
实验表明,交替活跃的旋转和超声波的指导方法可以对齐两个机器人在同一行,并准备进行对接。
Now the general method simplifies the shaft to the line segment, then calculates the distance between two line segments or the position of the point of intersection.
一般的研究方法都是把杆状物体简化为空间线段来进行分析和计算他们之间的距离或者具体的交点位置。
In the transformation of descriptive geometry, no matter the method of change plane or revolve, the oblique line can be changed to a vertical line in two successive transformations.
在画法几何投影变换中,不论用换面法或旋转法,一般位置直线均需两次变换才能变成投影面垂直线。
This method apply the length of the stadia as base line, survey the vertical angular of the two ends of the base ling by theodolite and get the distance between the station and stadia.
该方法是以视距尺的定长作基线,利用经纬仪测定基线两端点的竖直角,求出立尺点至测站点间的距离。
This paper presents the integrated evaluating method of line error in a plane by two endpoint and least square method.
给出了用两端点法、最小二乘法对平面内的直线度进行综合评定的方法。
Based on the distributed parameter model for transmission line, a new fault location method for short circuit fault of two points on different phases of the power transmission line is presented.
基于高压输电线路的分布参数模型,使用线路两端电压、电流的正序和负序分量,对高压输电线路两点异相故障提出了一种新的测距算法。
Two key questions in test running homemade PET spunbonded needle punched nonwovens production line are introduced in the paper. Method to solve these key questions are explained.
介绍了国产聚酯纺粘针刺非织造布生产线生产调试过程中的两个关键问题,说明了调试过程关键问题的解决办法。
Research results show that the new method has good identification precision, fast identification speed, it is an effective tool for two-phase flow pattern on-line identification.
研究结果表明,该方法辨识精度高、辨识速度快,是两相流流型在线辨识的一种有效手段。
The current method to branch wire from the cable trunk is to cut off the trunk line, and crimp two ends of trunk line and the required branch, and pack them, or to bind the branch line to trunk line.
现行的从电缆主干线上取得分支线的方法就是切断主干线,将干线两头和所分的支线一同压接后包裹起来,或是将分支线绑轧在主干线上。
Methods used in the prediction of pore pressure can be classified into two groups-the method of trend line and the method of percentage of overburden.
用地震速度资料进行钻前地层压力预测,大体可分为趋势线法和支撑上覆岩层压力的百分比法。
A method of H-D two-line analysis is given and isochromate equation of pseudo-color code of optical image is obtained.
本文提出了H-D双线的分析方法,得到了光学图象假彩色编码中的等色线方程。
A new criteria method is provided to determine the relative locations of spatial lines, which deduces the distance and the common vertical line of two straight lines in different planes.
给出判断空间两直线相关位置的一种新方法,并可由此直接得出两异面直线间的距离及公垂线的标准方程。
The intersecting of two conicoids is a frequent issue in the engineering components and their intersecting line in the engineering drafts are always drawn by means ofdiagrammatizing method.
两二次曲面相交是工程构件中常遇到的问题。工程图样均用图解法画出它们的交线。
Two models of 2d photonic crystal of line defects and nonperiodic dielectric rods are established. The finite-difference-time-domain method is developed for the study of bandgap.
构建了介质柱间距变化的变周期结构以及介质柱半径线缺陷两种二维光子晶体模型,并将时域有限差分法用于其能带特性研究。
With an example of two lines short and grounding fault, and one side of breaker of grounding fault line being cut off, the paper illustrates the principle of this calculation method.
文中以跨线并接地的横向故障和接地故障线的一侧断路器断开后的复杂故障为例阐明了该算法的原理。
应用推荐