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. --- tools/test-surface.py | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) (limited to 'tools/test-surface.py') diff --git a/tools/test-surface.py b/tools/test-surface.py index 7a89069..f51c26e 100644 --- a/tools/test-surface.py +++ b/tools/test-surface.py @@ -35,7 +35,12 @@ PUB_RE = re.compile(r"^\s*pub\s+(?:fn|struct|enum|trait|const|static|type)\s+([A COMMENT = re.compile(r"^\s*(?://|//!|///)") GATE = "test-support" HARNESS = ("Env::new", "env_with_fixture", "Fixture", "tempdir", "Command::new", - "fs::", "shim_dir", "corpus_root") + "fs::", "shim_dir", "corpus_root", + # `Web::` starts a real HTTP server; a test that talks to it is not a + # unit test however little code it contains. Missing this first made + # two http route handlers look movable when their tests were + # driving a live listener. + "Web::", "web.get", "web.post", "raw_request") # Reasons that take argument to state; everything else is derived from the # evidence the analysis already has. -- cgit v1.2.3