diff options
Diffstat (limited to '.gitlab-ci/lcovrc')
| -rw-r--r-- | .gitlab-ci/lcovrc | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/.gitlab-ci/lcovrc b/.gitlab-ci/lcovrc index ac5997b7..2b21bdff 100644 --- a/.gitlab-ci/lcovrc +++ b/.gitlab-ci/lcovrc @@ -7,7 +7,8 @@ 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 -lcov_excl_br_line = LCOV_EXCL_BR_LINE|g_return_if_fail|g_return_val_if_fail|g_assert|g_assert_ +# 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|soup_test_assert|soup_test_assert_|g_clear_pointer|g_clear_object # Similarly for unreachable assertions. -lcov_excl_line = LCOV_EXCL_LINE|g_return_if_reached|g_return_val_if_reached|g_assert_not_reached +lcov_excl_line = LCOV_EXCL_LINE|g_return_if_reached|g_return_val_if_reached|g_assert_not_reached|g_warn_if_reached |
