We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7635e1 commit 16e2f63Copy full SHA for 16e2f63
codetracer-python-recorder/scripts/generate_coverage_comment.py
@@ -118,7 +118,13 @@ def _load_rust_rows(
118
summary_path: pathlib.Path,
119
repo_root: pathlib.Path,
120
) -> Tuple[List[Row], Dict[str, float]]:
121
- rows, totals = load_rust_summary(summary_path, repo_root)
+ summary_result = load_rust_summary(summary_path, repo_root)
122
+ if not isinstance(summary_result, tuple):
123
+ summary_result = tuple(summary_result)
124
+ if len(summary_result) < 2:
125
+ raise SystemExit("Rust summary loader returned an unexpected payload")
126
+
127
+ rows, totals = summary_result[:2]
128
# Normalise totals dict to expected keys
129
total = float(totals.get("count", 0))
130
covered = float(totals.get("covered", 0))
0 commit comments