diff options
| author | aur-build <aur-build@localhost> | 2026-11-20 21:22:56 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-20 21:22:56 +0000 |
| commit | 2ed254f5487613e00dae4ee15dc63500c4edcce2 (patch) | |
| tree | fd14c32b9b2b8cba43a3b231b1833c411f2577e6 /src/db/retention.rs | |
| parent | b3c326735e4c212afed8c6a25411a1040a67f760 (diff) | |
| download | aur-build-2ed254f5487613e00dae4ee15dc63500c4edcce2.tar.gz aur-build-2ed254f5487613e00dae4ee15dc63500c4edcce2.zip | |
docs: record the test-surface movement in the census report and README
The census report gets a second movement next to the first. The numbers:
pub 505 -> 484, dead 105 -> 84, test-only 72 -> 48, pub(crate) 109 -> 119,
globs still zero.
Two budget increases are recorded rather than smoothed over, because both
are consequences of narrowing and a reader is entitled to know which
numbers moved the wrong way and why:
- sandbox.deadonly 0 -> 2. `Provisioner` and `ProvisionRequest` are named
by nobody outside sandbox but cannot be narrowed: LocalAgentProvisioner
is pub because two fixture tests construct it, and Rust forbids a public
type implementing a private trait or taking a private parameter.
- db.deadonly 8 -> 9. Five state enums each have a `can_transition`. Three
went private with their tests; ReleaseState's and SubscriptionState's
are consulted by nothing at all, so the name slid from test-only to
dead-only instead of disappearing. Both carry a NOTE already.
`largest` went 603 -> 673 because eleven config tests moved into
src/config.rs. It is reported and not budgeted: a line ceiling that counts
a module and its tests together would penalise the exact act this goal was
for.
README's Testing section was stale in a way only a test move exposes — it
named `versions::vercmp_matches_the_system_oracle`, a test that does not
exist under that name in either location — and said nothing about where a
test belongs. Both fixed, with the reason stated: a test outside a module
can only reach what the module exports, so a fixture-free test in tests/
is a door held open by a test.
Diffstat (limited to 'src/db/retention.rs')
0 files changed, 0 insertions, 0 deletions
