-
Notifications
You must be signed in to change notification settings - Fork 254
Closed as not planned
Description
In GLib, there are a couple of macros which are used to implement preconditions on user functions, called g_return_if_fail()
, g_return_val_if_fail()
, g_return_if_reached()
, etc. These expand out to an ‘if’ statement with one branch which is expected to always be taken, and the other branch which is expected to never be taken, and which shouldn’t be tested for in test cases because testing the preconditions for every user function would be a waste of time.
It would be nice if lcov supported using LCOV_EXCL_*
inside the macro definitions so that the second branch was ignored in every instance of the macros without having to annotate them all separately.
(This was originally reported as https://sourceforge.net/p/ltp/feature-requests/8/.)
mosra and dpirch
Metadata
Metadata
Assignees
Labels
No labels