summaryrefslogtreecommitdiffstats
path: root/tests/config.rs
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-23 13:56:40 +0000
committeraur-build <aur-build@localhost>2026-11-23 13:56:40 +0000
commit6872e81644546a9ccd0e1420c3ef64a26358f78a (patch)
treed9474a30cca7a22fe673e569c5dd3e3bbf5aab9c /tests/config.rs
parent4c143e969dcd7b6a18e5a86f9a754c9b62979ccf (diff)
downloadaur-build-6872e81644546a9ccd0e1420c3ef64a26358f78a.tar.gz
aur-build-6872e81644546a9ccd0e1420c3ef64a26358f78a.zip
tests: the ratchet says what the code says now
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.
Diffstat (limited to 'tests/config.rs')
-rw-r--r--tests/config.rs8
1 files changed, 0 insertions, 8 deletions
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");