From 4109de11e05e163e49587a44ac17beb708ced0fa Mon Sep 17 00:00:00 2001 From: Juan Altmayer Pizzorno Date: Thu, 28 Sep 2023 10:27:23 -0400 Subject: [PATCH] - fixed docstring; --- src/slipcover/slipcover.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/slipcover/slipcover.py b/src/slipcover/slipcover.py index d4b411f..14bf74e 100644 --- a/src/slipcover/slipcover.py +++ b/src/slipcover/slipcover.py @@ -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