Skip to content

Commit

Permalink
- fixed docstring;
Browse files Browse the repository at this point in the history
  • Loading branch information
jaltmayerpizzorno committed Sep 28, 2023
1 parent 59ce907 commit 4109de1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/slipcover/slipcover.py
Original file line number Diff line number Diff line change
Expand Up @@ -305,14 +305,15 @@ def get_coverage(self):
@staticmethod
def format_missing(missing_lines: List[int], executed_lines: List[int],
missing_branches: List[tuple]) -> List[str]:
"""Formats ranges of missing lines, including non-code (e.g., comments) ones that fall
between missed ones"""

missing_set = set(missing_lines)
missing_branches = [(a,b) for a,b in missing_branches if a not in missing_set and b not in missing_set]

def format_branch(br):
return f"{br[0]}->exit" if br[1] == 0 else f"{br[0]}->{br[1]}"

"""Formats ranges of missing lines, including non-code (e.g., comments) ones that fall
between missed ones"""
def find_ranges():
executed = set(executed_lines)
it = iter(missing_lines) # assumed sorted
Expand Down

0 comments on commit 4109de1

Please sign in to comment.