Skip to content

build: Ignore branches in g_clear_*() functions under lcov

Philip Withnall requested to merge pwithnall/glib:lcov-clear into main

It’s not useful for lcov to demand branch coverage of all branches within g_clear_*() functions (such as g_clear_pointer()). By choosing to use g_clear_*(), the programmer explicitly doesn’t care about whether the pointer is NULL. The tests shouldn’t have to either.

Signed-off-by: Philip Withnall pwithnall@gnome.org

Merge request reports