glib2.0/.lcovrc

16 lines
703 B
Plaintext
Raw Normal View History

2023-02-14 16:00:02 +08:00
# lcov and genhtml configuration
2024-05-23 15:55:40 +08:00
# See lcovrc(5)
2023-02-14 16:00:02 +08:00
# 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.
2024-05-23 15:55:40 +08:00
# Similarly exclude g_clear_*() functions (such as g_clear_object(),
# g_clear_pointer(), etc.) as its not useful to test both sides of the branch
# in them.
2023-02-14 16:00:02 +08:00
# See https://github.com/linux-test-project/lcov/issues/44
2024-05-23 15:55:40 +08:00
lcov_excl_br_line = LCOV_EXCL_BR_LINE|g_return_if_fail|g_return_val_if_fail|g_assert|g_assert_|g_clear_
2023-02-14 16:00:02 +08:00
# Similarly for unreachable assertions.
lcov_excl_line = LCOV_EXCL_LINE|g_return_if_reached|g_return_val_if_reached|g_assert_not_reached