Code coverage = 35% func, 38% line, 30% region
Code not covered by unit tests is broken potentially risky code.
Determine code coverage < 100%
Steps to reproduce the behavior:
Get the master git source code
Open the project folder with Visual Studio Code
Configure the CMake as Debug with Clang 11
Build
Run all tests
Start terminal in the build folder
Execute "cmake --build . --target ccov-all"
Use a web browser to view the code coverage information: build/ccov/all-merged/index.html
Expected code coverage of 100% for all
All Clang compiled C++ code (excluding Windows-only code that only compiles with Visual C++) should be covered with unit tests.
Platform:
OS: Linux, OSX
C++ compiler: Clang 11
llvm-cov code coverage tool
The LLVM/Clang code coverage tool called llvm-cov is required
Code coverage = 35% func, 38% line, 30% region Code not covered by unit tests is broken potentially risky code.
Determine code coverage < 100% Steps to reproduce the behavior:
Expected code coverage of 100% for all All Clang compiled C++ code (excluding Windows-only code that only compiles with Visual C++) should be covered with unit tests.
Platform:
llvm-cov code coverage tool The LLVM/Clang code coverage tool called llvm-cov is required