We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9063f0c commit efc9ca2Copy full SHA for efc9ca2
coverage/results.py
@@ -211,6 +211,8 @@ def missing_branch_arcs(self) -> dict[TLineNo, list[TLineNo]]:
211
def executed_branch_arcs(self) -> dict[TLineNo, list[TLineNo]]:
212
"""Return arcs that were executed from branch lines.
213
214
+ Only include ones that we considered possible.
215
+
216
Returns {l1:[l2a,l2b,...], ...}
217
218
"""
@@ -219,6 +221,8 @@ def executed_branch_arcs(self) -> dict[TLineNo, list[TLineNo]]:
219
221
for l1, l2 in self.arcs_executed:
220
222
if l1 == l2:
223
continue
224
+ if (l1, l2) not in self.arc_possibilities_set:
225
+ continue
226
if l1 in branch_lines:
227
eba[l1].append(l2)
228
return eba
0 commit comments