fgenolini / frank

Frank coding experiments
MIT License
1 stars 1 forks source link

code not 100% covered by unit tests #33

Open fgenolini opened 4 years ago

fgenolini commented 4 years ago

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:

  1. Get the master git source code
  2. Open the project folder with Visual Studio Code
  3. Configure the CMake as Debug with Clang 11
  4. Build
  5. Run all tests
  6. Start terminal in the build folder
  7. Execute "cmake --build . --target ccov-all"
  8. 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:

llvm-cov code coverage tool The LLVM/Clang code coverage tool called llvm-cov is required