You can exclude parts of your code from coverage metrics.
GCOVR_EXCL_LINEappears within a line, that line is ignored.
GCOVR_EXCL_STARTappears within a line, all following lines (including the current line) are ignored until a
GCOVR_EXCL_STOPmarker is encountered.
the markers may also start with
However, start and stop markers must use the same style.
The prefix is configurable with the option
In the excluded regions, any coverage is excluded. It is not currently possible to exclude only branch coverage in that region. In particular, lcov’s EXCL_BR markers are not supported (see issue #121).