您必须在编写每个测试时尽量地覆盖尽可能多的方法和分支。
You have to write each test to cover as much as it possibly can.
因为我们只需要覆盖一个简单的方法,所以这是实现我们目标的简明方法。
Because we only had to override one simple method, this was a concise way to achieve our goal.
对所有类进行专门测试后,还要为所有未覆盖的方法编写测试代码。
Once you partially test all the classes, write tests that cover any uncovered methods.
一个覆盖全部方法的网站已经产生。
而且如果需要编写测试,通常都是十分简单、覆盖方法的主要功能目标的测试。
More often than not, if they do write tests, they're typically very simple, covering the method's main functional aim.
如果设置ssoDomain选项,那么该值将覆盖认证方法中设置的值。
If the SSO Domain option is set, this value overrides what is set in the authentication method.
一个覆盖完全方法的网站已经产成(测试过程中鉴别的问题已经被确定)。
A website covering the complete method has been generated (problems identified during testing have been fixed).
您可以覆盖这些方法以编写定制的逻辑。
You can override each of these methods to write custom logic.
与行覆盖一样,如果在特定方法中有两个分支,并且两个分支在测试中都被覆盖,那么您可以说这个方法有100%的分支覆盖率。
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.
图7例举了这一点,基于每个变更类型中方法的唯一覆盖率,显示出测试套件和它们所覆盖的变更之间的关系。
Figure 7 illustrates this, showing the relationship between the test suites and the changes that they cover, based on unique coverage of the methods within each changed class.
更好的方法是创建一个覆盖整个磁盘的分区。
该方法用到一片铜片,上面用光敏感的沥青覆盖。
The method involves a piece of copper covered with light sensitive bitumen.
它提供广泛的覆盖面,是相当简单的可防止编码灾难的方法。
It provides extensive coverage and is a relatively easy way to prevent coding disasters.
代码覆盖是一种查看一套测试覆盖了多少代码的方法。
Code coverage is a way of seeing how much code is covered by a set of tests.
绕过这个要求的一种最简单的方法是覆盖您的主机文件中的一个DNS。
The easiest way to get around this requirement is to make a DNS override in your hosts file.
它提供了这些方法的默认实现,在实现自定义检测器时要覆盖这些方法。
It provides default implementations of these methods that you will override when implementing a custom detector.
因此我们用一个返回通知类型和接收到通知的时间的实现来覆盖那个方法。
So we override that method with an implementation which returns the notification's type and the time at which we received the notification.
USBD是被提议的覆盖软件开发端到端范围的统一的设计方法。
USBD is the proposed unified design methodology to cover the end-to-end spectrum of software development.
尽管使用这些方法和新的支持类肯定没问题,但提供构造函数和覆盖方法会有问题。
While it is certainly alright to use the methods and new support classes, providing constructors and overridden methods just feels wrong.
另外的教授喜欢用覆盖的方法考试,就是问有关材料的非常广博的问题,看你了解了多少。
Other professors like to test by coverage-that is, by asking about a very broad swatch of material to see how much you've taken in.
这里提供了一系列的覆盖范围方法,包括单向的,双向的以及三向的交流,还有所有的排列。
There are a couple of coverage methods provided, including one-way, pair-wise, and three-wise interactions, and all permutations.
敏捷大学的课程来自于许多培训师,范围很广,覆盖了敏捷方法的各个方面。
Agile University lists courses from a broad range of trainers, covering the whole gambit of Agile approaches.
如果一个方法有10行代码,其中的8行在测试中被执行,那么这个方法的行覆盖率是80%。
If a method is 10 lines long and 8 lines of the method were exercised in a test run, then the method has a line coverage of 80%.
当最后认识到方法的参数有错,且该方法实际上没有覆盖超类中的方法时,您可能更感到难受。
When you finally realize that a method has a parameter wrong, and in fact isn't overriding a method from a superclass, much bitterness can result.
它指明注释的方法将覆盖超类中的方法。
It indicates that the annotated method is overriding a method in a superclass.
方法覆盖的工作方式相同,成员可见性的工作方式相同,还有更多相同的地方。
Method overriding works the same, member visibility works the same, and so on.
Streamlined覆盖叫作render的方法,以实现这个目的。
Streamlined overrides a method called render to accomplish this purpose.
因为mixin的父类可能用类型参数被实例化,因此类型检查器就不能确定意外方法覆盖的所有情况。
Because a mixin's parent may be instantiated with a type parameter, there is no way for the type checker to determine all cases of accidental method overriding.
视图余下的部分提供了方便的方法来添加公共SIPservlet方法的方法覆盖。
The rest of the view provides a convenient way to add method overrides for common SIP servlet methods.
视图余下的部分提供了方便的方法来添加公共SIPservlet方法的方法覆盖。
The rest of the view provides a convenient way to add method overrides for common SIP servlet methods.
应用推荐