Skip to content

Commit

Permalink
refactor: check_coverage now uses keyword-only arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
nedbat committed Feb 16, 2025
1 parent bca4272 commit f34a510
Show file tree
Hide file tree
Showing 4 changed files with 256 additions and 136 deletions.
1 change: 1 addition & 0 deletions tests/coveragetest.py
Original file line number Diff line number Diff line change
Expand Up @@ -146,6 +146,7 @@ def get_module_name(self) -> str:
def check_coverage(
self,
text: str,
*,
lines: Sequence[TLineNo] | Sequence[list[TLineNo]] | None = None,
missing: str = "",
report: str = "",
Expand Down
4 changes: 2 additions & 2 deletions tests/test_arcs.py
Original file line number Diff line number Diff line change
Expand Up @@ -2119,7 +2119,7 @@ def test_default(self) -> None:
if e:#\tpragma:\tno branch
f = 9
""",
[1,2,3,4,5,6,7,8,9],
lines=[1,2,3,4,5,6,7,8,9],
branchz="23 24 56 57 89 8.",
branchz_missing="",
)
Expand All @@ -2132,7 +2132,7 @@ def test_custom_pragmas(self) -> None:
break
assert c == 5-2
""",
[1,2,3,4,5],
lines=[1,2,3,4,5],
partials=["only some"],
branchz="23 25", branchz_missing="",
)
Expand Down
Loading

0 comments on commit f34a510

Please sign in to comment.