2018-10-03 15:47:26 +02:00
|
|
|
|
# lcov and genhtml configuration
|
2024-01-18 14:06:10 +01:00
|
|
|
|
# See lcovrc(5)
|
2018-10-03 15:47:26 +02:00
|
|
|
|
|
|
|
|
|
# Always enable branch coverage
|
2024-09-28 23:31:23 +02:00
|
|
|
|
branch_coverage = 1
|
2018-10-03 15:47:26 +02:00
|
|
|
|
|
2024-07-24 11:34:44 +02:00
|
|
|
|
# Disable exception branch for C++:
|
|
|
|
|
# https://github.com/linux-test-project/lcov/issues/209
|
|
|
|
|
no_exception_branch = 1
|
|
|
|
|
|
2018-10-03 15:47:26 +02:00
|
|
|
|
# Exclude precondition assertions, as we can never reasonably get full branch
|
|
|
|
|
# coverage of them, as they should never normally fail.
|
2024-01-18 14:06:10 +01:00
|
|
|
|
# Similarly exclude g_clear_*() functions (such as g_clear_object(),
|
|
|
|
|
# g_clear_pointer(), etc.) as it’s not useful to test both sides of the branch
|
|
|
|
|
# in them.
|
2018-10-03 15:47:26 +02:00
|
|
|
|
# See https://github.com/linux-test-project/lcov/issues/44
|
2024-01-18 14:06:10 +01:00
|
|
|
|
lcov_excl_br_line = LCOV_EXCL_BR_LINE|g_return_if_fail|g_return_val_if_fail|g_assert|g_assert_|g_clear_
|
2018-10-03 15:47:26 +02:00
|
|
|
|
|
|
|
|
|
# Similarly for unreachable assertions.
|
2024-05-24 18:00:55 +02:00
|
|
|
|
lcov_excl_line = LCOV_EXCL_LINE|g_return_if_reached|g_return_val_if_reached|g_assert_not_reached
|
|
|
|
|
|
|
|
|
|
# When using dtrace some temporary files may be leaked as source files
|
|
|
|
|
ignore_errors = source
|
2024-05-24 18:53:34 +02:00
|
|
|
|
|
|
|
|
|
# Sometimes we may have negative counting despite using atomic profile update
|
|
|
|
|
ignore_errors = negative
|
2024-05-24 19:40:06 +02:00
|
|
|
|
|
|
|
|
|
# gnulib paths may not be used
|
|
|
|
|
ignore_errors = unused
|
2024-08-02 13:49:51 +02:00
|
|
|
|
|
|
|
|
|
# baseline lcov files may be empty
|
|
|
|
|
ignore_errors = empty
|