如果使用GCC编译器的话,编译时打开-fprofile-arcs-ftest-coverage开关,
使用gconv可以观察结果
使用lcov -c -d <目录> -o output
genhtml output
可以生成比较可读的代码覆盖率报告
转载于:https://blog.51cto.com/ravih/409710
如果使用GCC编译器的话,编译时打开-fprofile-arcs-ftest-coverage开关,
使用gconv可以观察结果
使用lcov -c -d <目录> -o output
genhtml output
可以生成比较可读的代码覆盖率报告
转载于:https://blog.51cto.com/ravih/409710