????3)Makefile??????????????coverage=yes????????? ???????-fprofile-arcs -ftest-coverage ???????????????? –coverage??

???????????????????????????????????????в???3??4?????????????????????ɡ?

????1. ?????????????????????????;

????2. ???в??????;

????3. ???gcov????????????????????;

????4. ???lcov???html??????????????;

?????????????????????????????????

????1. ?????????????????????????;

????????Makeifle??????????coverage=yes?????????? “make coverage=yes”???????????????????????????gcno???(????gcno??????????????μ???????????????)?????????

????2. ???в??????;

????????./RectangleTest ??????????н?????????????е?cpp?????????????????*.gcda???(????gcda??????????????μ???????????????)???????

????3. ???gcov????????????????????;

????????????????????費(fèi)???????????????????(*.gcov)???????????????????????衣?????html??????????????????????衣gcov??gcc????????????????????????赥???????

???????????????????????? Rectangle.cpp?????”gcov Rectangle.cpp” ?????Rectangle.cpp.gcov?????

????????????????????????????vim??????????????и??????????????