Skip to content

Commit

Permalink
fix(code-coverage): ignore whitespace when parsing coverage info
Browse files Browse the repository at this point in the history
  • Loading branch information
niklasdewally committed Oct 22, 2024
1 parent c3e7645 commit 298b704
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tools/code-coverage-diff/calculate_coverage_difference.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ def parse_coverage_data(coverage_data):

coverage_dict = {}
for line in coverage_data.splitlines():
line=line.strip()
match = re.match(r'(\w+).*: ([\d.]+)% \((\d+) of (\d+)', line)
if match:
# store coverage details in a dictionary
Expand Down

0 comments on commit 298b704

Please sign in to comment.