Skip to content

Commit

Permalink
docs: note about intersection and surroundings algorithm
Browse files Browse the repository at this point in the history
  • Loading branch information
matveypashkovskiy committed Mar 31, 2021
1 parent 030bc32 commit f303ef8
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions pytest_rts/utils/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,6 +103,8 @@ def intersect_with_surroundings(changed_lines: Set[int], mapped_lines: Set[int])
changed_lines | 1 5 21 30
mapped_lines | 2 3 10 11 12 20 21 22
result | 2 3 10 21 22
Algorithm could be improved. See conversation: https://github.com/F-Secure/pytest-rts/pull/103#pullrequestreview-625312058
"""
mapped = changed_lines.intersection(mapped_lines)
unmapped = changed_lines.difference(mapped)
Expand Down

0 comments on commit f303ef8

Please sign in to comment.