topos.mcp.tools.coverage¶
Coverage tools — structural test coverage (UAST) and topological ECT coverage.
- topos.mcp.tools.coverage.topos_calculate_coverage(params)[source]
Calculate structural test coverage (v2) for a set of PUT and test files.
Uses UAST kind histograms, statement/expression recall, and k-gram path recall scoped to declarations. When the
ect-coverageoptional extra is installed, also returns topological ECT semantic coverage from CPG node embeddings.
- topos.mcp.tools.coverage.render_coverage_md(r)[source]
Markdown rendering of a structural coverage result.