Skip to content

Source-based coverage doesn't support branch coverage #520

Open
@ErikBjare

Description

@ErikBjare

Hi there, nice job with grcov!

We've been having some issues with coverage for our project (probably not grcov's fault), and when I was working on fixing it I discovered the new source-based coverage, which looked like the way forward (given you use it youself in your CI). So I adopted it, but noticed branch coverage was 0/0. (the PR in question: ActivityWatch/aw-server-rust#192)

Is this planned/intended? From what I've read gcov's source-based coverage supports branches just fine. (https://clang.llvm.org/docs/SourceBasedCodeCoverage.html)

Thanks for your work! ❤️

Edit: After reading the rust unstable book on source-based code coverage it seems "branch coverage" is superseded by "region coverage". Is this a correct interpretation? Is "branch coverage" redundant in a "region coverage" paradigm?

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