summaryrefslogtreecommitdiffstats
path: root/tests/production_surface.rs
diff options
context:
space:
mode:
authordev <dev@localhost>2026-11-20 16:49:20 +0000
committerdev <dev@localhost>2026-11-20 16:49:20 +0000
commit28387a3b920d2ecff62d2ef267af6b875be9d28d (patch)
tree247860f1d8019a32677c5cdcc43adb833bc2ea5d /tests/production_surface.rs
parenta0ebd201713ae5a5a871b46aa526ffc40770f4bc (diff)
downloadaur-build-28387a3b920d2ecff62d2ef267af6b875be9d28d.tar.gz
aur-build-28387a3b920d2ecff62d2ef267af6b875be9d28d.zip
tools: census how wide each module's interface actually is
An interface is only as narrow as the items a module hands out, and nobody had counted them: 585 pub items across 27 modules, 146 of which nothing outside their own module ever names. That is not an interface, it is a hole in the module boundary, and every one of them is a thing a later refactor cannot change without a grep across the crate. The census counts pub items per module, how many of them are dead, how many of those a test does name (the integration tests are separate crates, so a name only they use is genuinely pub and the honest thing is to count it rather than pretend it is private), the glob re-exports that flatten a namespace, and the crate:: edge set between modules. The edge set is already acyclic, which is the useful surprise: a layer map can be declared over the graph as it stands rather than after breaking something. It also says where the width is — db hands out 226 items, http 68 of which 54 are dead — so the work has an order. Baseline for all of it: 273 tests passing, clippy -D warnings clean, release build clean.
Diffstat (limited to 'tests/production_surface.rs')
0 files changed, 0 insertions, 0 deletions