Skip to content
This repository was archived by the owner on Jun 30, 2021. It is now read-only.

Statements are counted multiple times if multiple entries with different count value in coverage file #15

Open
jainpiyush19 opened this issue Apr 1, 2021 · 0 comments

Comments

@jainpiyush19
Copy link
Contributor

If coverage file has 2 entries like this :
vendor_health.go:59.143,62.16 3 0
vendor_health.go:59.143,62.16 3 1

totalNumStatements is calculated as 6 rather than 3.
Hence the coverage reported is 50% of actual.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant