Skip to content

Commit 83ac701

Browse files
committed
ci: coverage match on word boundary (macro-dispatched ops were miscounted)
1 parent a4bad86 commit 83ac701

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎.github/scripts/surface_coverage.py‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def main():
4040
if n not in _SKIP and not n.endswith("_impl") and not n.startswith("_"):
4141
surface.setdefault(n, h.relative_to(ROOT))
4242
test_text = "\n".join(t.read_text(errors="ignore") for t in TESTS)
43-
covered = {n for n in surface if re.search(rf"\b{re.escape(n)}\s*[(<]", test_text)}
43+
covered = {n for n in surface if re.search(rf"\b{re.escape(n)}\b", test_text)}
4444
gaps = sorted(set(surface) - covered)
4545
pct = 100.0 * len(covered) / max(1, len(surface))
4646
print(f"surface: {len(surface)} public entry points, "

0 commit comments

Comments
 (0)