forked from t-yuki/gocover-cobertura
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Disallow line appearing more than once
I'm not an expert on Cobertura, but it seems confusing to have stuff like: ``` <line number="5" hits="1"></line> <line number="5" hits="0"></line> ``` I decided to treat this situation in a pessimistic way - i.e.: if the second entry for a line number is lower than the previous one, then we update the hit count down; but we never update it up. In other words, if we ever see a 0 for a line, we mark the line uncovered, even if we previously saw a 1.
- Loading branch information
Showing
3 changed files
with
27 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters