From 72dcae2a04644609a30a90200edca368d131d600 Mon Sep 17 00:00:00 2001 From: aur-build Date: Fri, 20 Nov 2026 21:12:59 +0000 Subject: http, config, sandbox: apply the rest of the dispositions MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Five http items were being counted as test-pinned on the strength of a string alone, and are now `pub(crate)`: render::Attention the word appears in crash.rs inside a message Res::html "text/html" is a content type, not a call Res::redirect "redirect" appears in an assertion message routes::logout "/logout" is a route path routes::route "mutating route" appears in an assertion message Nothing in the test tier calls any of them; each carries a comment saying so, because "the census said a test needed this" is not a reason and will be re-asked by the next person to read the line. `config::TestHooks` was already half-gated — the `hooks` field and the `Default` line that fills it are both behind `test-support` — while the type and its impl were not, so a release binary compiled a struct it could never construct, read, or deserialize. Now gated whole. The live kata tier moved into `src/sandbox/kata.rs`. It is not a fixture test: it records its own absence without /dev/kvm or AUR_KATA_API, the same way the vercmp live tier does. It was the only thing outside the module naming `K8sSandboxProvisioner` field by field, so that struct is `pub(crate)` now too. One correction to the table, and it is the kind of correction a heuristic deserves: `http::cookie` and `http::login` were classified `move-test` because their tests contain no harness keyword. They do — `Web::` starts a real HTTP listener, and a test that talks to one is not a unit test however little code it holds. The detector now knows that, and both items are residue, which is what they always were. http: 27 pub -> 22 pub. Test-only items across the crate: 52 -> 46. Suite: 284 passed, 0 failed, 0 ignored. Clippy clean. --- tests/architecture-budget.json | 48 ++++++++++++++++++++---------------------- 1 file changed, 23 insertions(+), 25 deletions(-) (limited to 'tests/architecture-budget.json') diff --git a/tests/architecture-budget.json b/tests/architecture-budget.json index 0e9fd0a..fc44d5f 100644 --- a/tests/architecture-budget.json +++ b/tests/architecture-budget.json @@ -81,9 +81,9 @@ "dead": 2, "deadonly": 0, "glob": 0, - "largest": 667, + "largest": 673, "largest_file": "src/config.rs", - "lines": 667, + "lines": 673, "priv": 0, "pub": 29, "test": 2 @@ -144,15 +144,15 @@ "test": 0 }, "http": { - "dead": 13, + "dead": 8, "deadonly": 3, "glob": 0, "largest": 565, "largest_file": "src/http/routes/pages.rs", - "lines": 1922, - "priv": 67, - "pub": 27, - "test": 10 + "lines": 1927, + "priv": 72, + "pub": 22, + "test": 5 }, "lib": { "dead": 0, @@ -243,15 +243,15 @@ "test": 4 }, "sandbox": { - "dead": 10, + "dead": 9, "deadonly": 2, "glob": 0, - "largest": 451, + "largest": 484, "largest_file": "src/sandbox/kata.rs", - "lines": 1279, - "priv": 15, - "pub": 22, - "test": 8 + "lines": 1312, + "priv": 16, + "pub": 21, + "test": 7 }, "shims": { "dead": 12, @@ -310,25 +310,23 @@ } }, "test_surface": { - "already-gated": 9, + "already-gated": 10, "gate": 3, "gate_pending": 3, - "move-test": 3, - "narrow": 5, - "residue": 32, - "total": 52, - "ungated": 43 + "residue": 33, + "total": 46, + "ungated": 36 }, "totals": { - "dead": 90, + "dead": 84, "deadonly": 36, "edges": 87, "glob": 0, - "largest": 667, + "largest": 673, "largest_file": "src/config.rs", - "lines": 15074, - "priv": 113, - "pub": 490, - "test": 54 + "lines": 15118, + "priv": 119, + "pub": 484, + "test": 48 } } -- cgit v1.2.3