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. --- src/config.rs | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/config.rs') diff --git a/src/config.rs b/src/config.rs index cd43b97..bb60cc7 100644 --- a/src/config.rs +++ b/src/config.rs @@ -133,6 +133,11 @@ pub struct Config { pub dispatch_tick_secs: u64, } +/// Test-tier only, and already half-gated: the `hooks` field that holds one and +/// the `Default` line that fills it are both behind `test-support`, so without +/// the gate below this type compiles into a release binary that can never +/// construct, read, or deserialize it. +#[cfg(feature = "test-support")] #[derive(Debug, Clone, Default, Serialize, Deserialize)] #[serde(default)] pub struct TestHooks { @@ -145,6 +150,7 @@ pub struct TestHooks { pub shim_plant_link: Option, } +#[cfg(feature = "test-support")] impl TestHooks { pub fn is_empty(&self) -> bool { self.path_prepend.is_none() -- cgit v1.2.3