From b3c326735e4c212afed8c6a25411a1040a67f760 Mon Sep 17 00:00:00 2001 From: aur-build Date: Fri, 20 Nov 2026 21:20:05 +0000 Subject: review, shims, time: gate the last three test-only entry points MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit `review::diff::render_and_store` is the alarming row in the table: zero callers in `src/`, seventeen test files. Intake renders through `review::intake::record` — the single entry point the pipeline and both front ends use — and this is the older uncomposed form. It is gated, not relocated to `tests/common`, because it needs this module's private `panels`/`render_text` and `candidates::set_diff_digest`; widening those to let a test out would undo the narrowing the last dozen commits did. `shims::called_with` is gated: the shim *writes* its invocation log in production, which is how a fake tool leaves evidence, but nothing in the crate reads it back. Only tests ask what a build actually did. `time::pin` and `time::unpin` are gated together. Gating half of a two-function capability would leave a release binary able to freeze the clock and unable to release it. `pin` is worth naming because the census never reported it as test-only at all: its name match also fires inside `upstream_pins`, so a genuinely test-only function hid in plain sight until its counterpart was examined. The only callers in the crate are tests, and the unit test that uses them is gated with them. Nothing was relocated to `tests/common`. The table chose no `relocate` disposition — every item either needed module-private internals or moved into its own module instead — and no API was widened to accommodate a test, which was the condition on relocating anything. Test-only items across the crate: 61 at the start of this work, 46 now, of which 33 are residue and 13 already gated. `gate_pending` is zero. Suite: 284 passed, 0 failed, 0 ignored. Clippy clean. --- tests/architecture-budget.json | 20 +++++++++----------- 1 file changed, 9 insertions(+), 11 deletions(-) (limited to 'tests') diff --git a/tests/architecture-budget.json b/tests/architecture-budget.json index fc44d5f..d806fbf 100644 --- a/tests/architecture-budget.json +++ b/tests/architecture-budget.json @@ -235,9 +235,9 @@ "dead": 5, "deadonly": 1, "glob": 0, - "largest": 288, + "largest": 301, "largest_file": "src/review/diff.rs", - "lines": 859, + "lines": 872, "priv": 3, "pub": 24, "test": 4 @@ -257,9 +257,9 @@ "dead": 12, "deadonly": 8, "glob": 0, - "largest": 603, + "largest": 610, "largest_file": "src/shims/mod.rs", - "lines": 603, + "lines": 610, "priv": 0, "pub": 19, "test": 4 @@ -268,9 +268,9 @@ "dead": 5, "deadonly": 2, "glob": 0, - "largest": 231, + "largest": 242, "largest_file": "src/time.rs", - "lines": 231, + "lines": 242, "priv": 0, "pub": 14, "test": 3 @@ -310,12 +310,10 @@ } }, "test_surface": { - "already-gated": 10, - "gate": 3, - "gate_pending": 3, + "already-gated": 13, "residue": 33, "total": 46, - "ungated": 36 + "ungated": 33 }, "totals": { "dead": 84, @@ -324,7 +322,7 @@ "glob": 0, "largest": 673, "largest_file": "src/config.rs", - "lines": 15118, + "lines": 15149, "priv": 119, "pub": 484, "test": 48 -- cgit v1.2.3