Skip to content

FR: Support for LCOV coverage-ignore comments #130

Description

@GitMensch

Is your feature request related to a problem? Please describe.
Some lines cannot be covered, e.g. exception recovery for a system fault. For this LCov has LCOV_EXCL_LINE and LCOV_EXCL_BEGIN/END comments to skip some lines or even whole blocks.
CPPCoverage seems to have magic comments which map the pragmas added, which is a plain toggle on/off.
It is bad if you run coverage under GCC/LLVM and under MSVC - and need multiple comments to tweak both (and lcov is used much longer).

Describe the solution you'd like
Support for block-ignore of source lines for coverage lines with support of the LCOV comments out of the box.
Also support "only next line not covered".

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions