码迷,mamicode.com
首页 > 其他好文 > 详细

单元测试里面的PVC覆盖率

时间:2018-03-06 14:40:58      阅读:147      评论:0      收藏:0      [点我收藏+]

标签:100%   google   with   googl   覆盖率   unit test   tin   oss   log   

今天听到有人说,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.

 

单元测试里面的PVC覆盖率

标签:100%   google   with   googl   覆盖率   unit test   tin   oss   log   

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

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!