Skip to content

Commit

Permalink
tricky unused exclude patterns.
Browse files Browse the repository at this point in the history
  • Loading branch information
John-LittleBearLabs committed Oct 17, 2024
1 parent c95c62f commit e16522c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions cmake/CodeCoverage.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -274,6 +274,7 @@ function(setup_target_for_coverage_lcov)
set(LCOV_BASELINE_CMD ${LCOV_PATH} ${Coverage_LCOV_ARGS}
--gcov-tool ${GCOV_PATH} -c --no-external -i -d .
--ignore-errors mismatch
--ignore-errors unused
-b ${BASEDIR}
-o ${Coverage_NAME}.base )
# Run tests
Expand Down
4 changes: 2 additions & 2 deletions library/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -262,8 +262,8 @@ if(GTest_FOUND AND IN_WORKSPACE)
DEPENDENCIES run_tests
EXECUTABLE $<TARGET_FILE:unit_test_runner>
EXCLUDE
*/*/*test.cc
src/smhasher/*.cc
${unit_test_sources}
src/smhasher/MurmurHash3.cc
)
else()
message(WARNING "Cannot provide coverage report without lcov")
Expand Down

0 comments on commit e16522c

Please sign in to comment.