summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authordev <dev@example.com>2026-11-21 19:25:47 +0000
committerdev <dev@example.com>2026-11-21 19:25:47 +0000
commit533835c6b49111d5520ccd7a7bdd008a428b560f (patch)
tree4947b0faa66420012050c600d0d1119d55cd4a43 /tests
parentdb11b540b1b4c60926c175cb5cd043c7555b99f3 (diff)
downloadaur-build-533835c6b49111d5520ccd7a7bdd008a428b560f.tar.gz
aur-build-533835c6b49111d5520ccd7a7bdd008a428b560f.zip
config,db,fetch,ops: eleven pub(crate) items nothing outside their own file reaches
Every one of these was found by taking the marker off and asking the compiler, under both profiles, not by reading a grep. `cargo check --all-targets` builds with `test-support` on, so it never compiles the `cfg(not(test-support))` half of a feature-conditional declaration; the release check is the one that says whether that half can go private, and it refused several of them that the dev check appeared to accept. Narrowed to private: config `shared_workspace` and `store_dir` (both are the `cfg(not(test-support))` twin of a `pub` that only tests reach), db `state_col`, `start`, `call`, `send`, fetch `Body` and `open`, ops `build_success_rate`, `STAGING_GRACE_SECS` and `sweep_staging`. Refused, and now argued in the budget file rather than left unexplained: `EvictPlan`, because `plan_retention` is `pub(crate)` and returns `Vec<EvictPlan>`, so a private row type is `error: type EvictPlan is private` at `usecase/maintenance.rs:23` where the Vec is bound. `Readers`, `OpenReview` and `ReviewSubject` are the same story in `db`. priv 170 -> 159, overwide 27 -> 22. `cargo check` clean under both profiles with no new warnings, including no new dead_code; `cargo test --test architecture` 16 passed.
Diffstat (limited to 'tests')
-rw-r--r--tests/architecture-budget.json28
1 files changed, 14 insertions, 14 deletions
diff --git a/tests/architecture-budget.json b/tests/architecture-budget.json
index 4ac33de..18e33c5 100644
--- a/tests/architecture-budget.json
+++ b/tests/architecture-budget.json
@@ -143,8 +143,8 @@
"largest": 699,
"largest_file": "src/config.rs",
"lines": 699,
- "overwide": 1,
- "priv": 2,
+ "overwide": 0,
+ "priv": 0,
"pub": 29,
"test": 2
},
@@ -156,7 +156,7 @@
"largest_file": "src/db/mod.rs",
"lines": 3890,
"overwide": 0,
- "priv": 19,
+ "priv": 15,
"pub": 189,
"test": 11
},
@@ -179,8 +179,8 @@
"largest": 57,
"largest_file": "src/fetch.rs",
"lines": 57,
- "overwide": 1,
- "priv": 2,
+ "overwide": 0,
+ "priv": 0,
"pub": 1,
"test": 0
},
@@ -251,8 +251,8 @@
"largest": 455,
"largest_file": "src/ops.rs",
"lines": 455,
- "overwide": 3,
- "priv": 5,
+ "overwide": 0,
+ "priv": 2,
"pub": 11,
"test": 3
},
@@ -408,16 +408,16 @@
"bin/pacman": 0,
"bin/repo-add": 0,
"bin/sandbox-agent": 0,
- "config": 1,
+ "config": 0,
"db": 0,
"error": 0,
- "fetch": 1,
+ "fetch": 0,
"git": 0,
"hash": 0,
"http": 1,
"lib": 0,
"main": 0,
- "ops": 3,
+ "ops": 0,
"pipeline": 8,
"pkginfo": 0,
"pkgver": 0,
@@ -432,9 +432,9 @@
}
},
"test_surface": {
- "already-gated": 16,
+ "already-gated": 21,
"interface": 1,
- "narrowed": 19,
+ "narrowed": 14,
"total": 36
},
"totals": {
@@ -445,8 +445,8 @@
"largest": 699,
"largest_file": "src/config.rs",
"lines": 15671,
- "overwide": 27,
- "priv": 170,
+ "overwide": 22,
+ "priv": 159,
"pub": 448,
"test": 49
}