Skip to content

Commit

Permalink
fix: move functions_incremented outside loop (#1537)
Browse files Browse the repository at this point in the history
  • Loading branch information
dtdang authored Jul 17, 2023
1 parent 4e747fc commit 424150b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ape/pytest/coverage.py
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@ def cover(
return set(), []

handled_pcs = set()
functions_incremented: List[str] = []
for pc in pcs:
if pc < 0:
continue
Expand All @@ -91,7 +92,6 @@ def cover(
continue

for contract in source_coverage.contracts:
functions_incremented: List[str] = []
for function in contract.functions:
statements_hit = []
for statement in function.statements:
Expand Down

0 comments on commit 424150b

Please sign in to comment.