Run lcov failed "Can't locate JSON/PP.pm in @INC ..."2021-09-07·403 words·2 minsXianpeng ShenLcov PerlThis article explains how to resolve the “Can’t locate JSON/PP.pm in @INC …” error when running lcov, including installing missing Perl modules.
Code coverage testing of C/C++ projects using Gcov and LCOV2021-07-11·1000 words·5 minsXianpeng ShenGcov LcovThis article shares how to use Gcov and LCOV to metrics code coverage for C/C++ projects. It explains the steps to compile, run tests, and generate coverage reports, including example commands and expected outputs.