Skip to content

Commit

Permalink
fix: keep negative arc values
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Sep 29, 2022
1 parent aabc540 commit 789f175
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion coverage/jsonreport.py
Expand Up @@ -115,4 +115,4 @@ def _convert_branch_arcs(branch_arcs):
"""Convert branch arcs to a list of two-element tuples."""
for source, targets in branch_arcs.items():
for target in targets:
yield source, target if target != -1 else 0
yield source, target
2 changes: 1 addition & 1 deletion tests/test_json.py
Expand Up @@ -55,7 +55,7 @@ def test_branch_coverage(self):
'executed_branches': [
[2, 4],
[4, 5],
[8, 0],
[8, -1],
],
'missing_branches': [
[2, 3],
Expand Down

0 comments on commit 789f175

Please sign in to comment.