单元测试里面的PVC覆盖率

时间:2018-03-06 14:13:31   收藏:0   阅读:217

今天听到有人说,PVC覆盖率也是很重要的一种覆盖率,所以就Google了一下。

 

 

Unit Testing with Parameter Value Coverage (PVC):

 

Parameter Value Coverage (PVC) is the ability to track coverage of a method based on the common possible values for the parameters accepted by the method.

Current code coverage tools fail to take into consideration the possibility that a value for a parameter is not handled resulting in a bug. However, there may not be any code addressing this value in any way, introducing the possibility of obtaining 100% code coverage or line coverage (LC) without detecting the bug.

 

原文:https://www.cnblogs.com/evanxyhu/p/unit-testing-with-pvc.html

评论(0
© 2014 bubuko.com 版权所有 - 联系我们:wmxa8@hotmail.com
打开技术之扣,分享程序人生!