Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 789f175

Browse files
committedSep 29, 2022
fix: keep negative arc values
1 parent aabc540 commit 789f175

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed
 

‎coverage/jsonreport.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,4 +115,4 @@ def _convert_branch_arcs(branch_arcs):
115115
"""Convert branch arcs to a list of two-element tuples."""
116116
for source, targets in branch_arcs.items():
117117
for target in targets:
118-
yield source, target if target != -1 else 0
118+
yield source, target

‎tests/test_json.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ def test_branch_coverage(self):
5555
'executed_branches': [
5656
[2, 4],
5757
[4, 5],
58-
[8, 0],
58+
[8, -1],
5959
],
6060
'missing_branches': [
6161
[2, 3],

0 commit comments

Comments
 (0)
Please sign in to comment.