I tried two ways to add LCOV_EXCL_LINE
in my code.
I add it as comment, compile and generate
lcov
report butlcov
binary takes it as a comment and showing the coverage of excluded line.
Image showing coverage of excluded line:
After compilation and execution I add
LCOV_EXCL_LINE
before runninglcov
andgenhtml
binaries but it results in misalignment after first exclusion.
Image showing misalignment coverage: