Skip to content

Confused with branch coverage  #75

@juraj67

Description

@juraj67

Hi,
I would like to ask, if there is a way to do properly only conditional branch coverage with LCOV/GCOV.

I found this simple project which is showing the problem:
https://github.com/ghandmann/lcov-branch-coverage-weirdness

There is also some thread about this problem:
https://stackoverflow.com/questions/42003783/lcov-gcov-branch-coverage-with-c-producing-branches-all-over-the-place

I can't use -fno-exceptions flag, so I would like to know if there is any solution for this problem.

Thanks in advance for your help.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions