Skip to content

Does the coverage of a Package calculated only by the tests in same package #31

Description

@visu-suganya

Hi @rillig

First of all Thanks so much for Branch(C1) and Condition(C2) coverage implementation. It helps us a lot.

I have to find C1 for whole project. So I planned to pass packages one by one to get whole coverage.
In this case:
Is the package coverage rate (C1) that can be measured by gobco limited to the portion of the test code in the same package that passes?
For example, if there are packages A and B, and a function in package A is only tested within package B, will the test coverage of package A be 0%?

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