diff options
author | Patrick Griffis <pgriffis@igalia.com> | 2022-09-22 13:53:00 -0500 |
---|---|---|
committer | Olivier CrĂȘte <olivier.crete@collabora.com> | 2022-10-17 18:22:49 +0200 |
commit | 1a0604bd0974e5ab1f5663dea158b7040c200bc9 (patch) | |
tree | 8110a883a641f056b61391bc31fd3842880927b5 | |
parent | 5a239329260476eb2b4dd10994235db60491c26d (diff) | |
download | libnice-1a0604bd0974e5ab1f5663dea158b7040c200bc9.tar.gz |
Add configuration file for lcov
This is useful for accurately testing code coverage. You can use this with:
meson configure -Db_coverage=true
meson test
ninja coverage
-rw-r--r-- | .lcovrc | 14 |
1 files changed, 14 insertions, 0 deletions
@@ -0,0 +1,14 @@ +# lcov and genhtml configuration +# See http://ltp.sourceforge.net/coverage/lcov/lcovrc.5.php + +# Always enable branch coverage +lcov_branch_coverage = 1 + +# Exclude precondition assertions, as we can never reasonably get full branch +# coverage of them, as they should never normally fail. +# See https://github.com/linux-test-project/lcov/issues/44 +# Also ignore g_clear macros as we don't care about the NULL path often +lcov_excl_br_line = LCOV_EXCL_BR_LINE|g_return_if_fail|g_return_val_if_fail|g_assert|g_assert_|g_warn_if_fail|g_clear_ + +# Similarly for unreachable assertions. +lcov_excl_line = LCOV_EXCL_LINE|g_return_if_reached|g_return_val_if_reached|g_assert_not_reached|g_warn_if_reached|nice_debug|g_error |