GCOV - GCC代码覆盖率工具

编译时添加选项: gcc -fprofile-arcs -ftest-coverage -o test test.cide

运行获得覆盖率结果:./testspa

产生分析报告:gcov test.cit

 =>编译

File 'test.c'class

Lines executed:??% (行覆盖率) of ?? (总行数)test

相关文章
相关标签/搜索