From 6872e81644546a9ccd0e1420c3ef64a26358f78a Mon Sep 17 00:00:00 2001 From: aur-build Date: Mon, 23 Nov 2026 13:56:40 +0000 Subject: tests: the ratchet says what the code says now MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The architecture test's own essays were the largest block of prose left in the tree, and the test-file headers were notes about which tests moved into `src/` — history the file no longer needs. Removing those mentions moved two measured numbers, and the ratchet was right to complain. `db.Writer` now sits in the allowlist with the compiler fact that keeps it `pub` — narrowing it makes every call site say `type db::Writer is private` — and the counts that got smaller are written back at the smaller value, as the ratchet demands. --- tests/config.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'tests/config.rs') diff --git a/tests/config.rs b/tests/config.rs index 86222a8..441d6fe 100644 --- a/tests/config.rs +++ b/tests/config.rs @@ -3,14 +3,6 @@ use std::process::Command; use aur_build::config::Config; -// What remains here needs a real directory or a real process: the root -// resolution tests create and remove paths under target/, and the CLI tests -// run the built binary. The parsing, validation and Debug-redaction tests -// moved into src/config.rs, where they are unit tests of the module. -// -// The one thing they could not shed is `Config::load`'s signature: it takes a -// directory, so even a pure parse needs a file on disk somewhere. - #[test] fn a_relative_root_is_absolutized_once_and_never_doubled() { let rel = PathBuf::from("target").join("config-root-test").join("runtime"); -- cgit v1.2.3