Fix mutation report anchors

This commit is contained in:
Cursor Agent 2026-05-11 15:17:34 +00:00
parent c4d964f460
commit f16529eb23
No known key found for this signature in database

View file

@ -265,7 +265,7 @@ def render(config: dict, survivors: list[str], stats: dict | None) -> str:
out.append("## Surviving mutants by function")
out.append("")
for (module_path, function_name), items in by_function.items():
anchor = f"{function_name.lower().replace('_', '-')}"
anchor = function_name.lower()
out.append(
f"- [`{function_name}`](#{anchor}) — {len(items)} mutant"
f"{'s' if len(items) != 1 else ''} ({module_path})"