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%.
如果一个方法有10行代码,其中的8行在测试中被执行,那么这个方法的行覆盖率是80%。
The method will also become a hot spot (at line 13) if it takes the database a long time to return the results.
如果从数据库返回结果时间过长,该方法也会成为一个热点(在13行)。
Any class that provides the appropriately-argumented apply method will work when called as long as the arguments line up in number and in type.
任何提供了被适当赋予了参数的apply方法的类,只要这些参数都按数字和类型排列了起来,它们都会在被调用时运行。
应用推荐