diff options
| author | aur-build <aur-build@localhost> | 2026-11-22 10:51:45 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-22 10:51:45 +0000 |
| commit | 053dfbca8a4955a616e9b2c0f5a5d664c0db7aef (patch) | |
| tree | 969777fa32845f49723c52b1889c4870c98134cf /src/db/invariants.rs | |
| parent | 1e1e12e7220a3fd288782ae40f0823db32acf6cb (diff) | |
| download | aur-build-053dfbca8a4955a616e9b2c0f5a5d664c0db7aef.tar.gz aur-build-053dfbca8a4955a616e9b2c0f5a5d664c0db7aef.zip | |
src,tests: retire the census commentary from the source
A gated item used to carry its own defence: why it is `pub` only under
`test-support`, which census once mistook a filename for a caller, why a
wrapper is compiled out rather than deleted. The budget file already
holds those claims and the ratchet already checks them, so the source
keeps the one line that says what the item is.
The module headers stop narrating the refactor that produced them. What
survives is the wire protocol, the git pipe, the poisoned lock that must
be recovered rather than unwedged.
Diffstat (limited to 'src/db/invariants.rs')
| -rw-r--r-- | src/db/invariants.rs | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/src/db/invariants.rs b/src/db/invariants.rs index e2e6b13..d768c76 100644 --- a/src/db/invariants.rs +++ b/src/db/invariants.rs @@ -1,13 +1,8 @@ use crate::db::Db; use crate::error::Result; -/// Repo entries whose candidate was never approved. -/// -/// Test-tier only, and deliberately so: this is an invariant the schema does -/// not enforce and production does not check, so the only thing that keeps it -/// true is that a test asserts it on every run. It is gated rather than moved -/// to `tests/common` because reading it needs this module's private helpers, -/// and widening those to let a test out would be the wrong trade. +/// Repo entries whose candidate was never approved — an invariant only a test +/// keeps true, so nothing in production asks for it. #[cfg(feature = "test-support")] pub fn unapproved_index_entries(db: &Db) -> Result<Vec<String>> { db.read(|c| { @@ -27,7 +22,6 @@ pub fn unapproved_index_entries(db: &Db) -> Result<Vec<String>> { } #[derive(Debug, Clone)] -// Unbuilt stays `pub`: the attention row `approved_but_unbuilt` returns to the web UI and to tests/crash.rs. pub struct Unbuilt { pub pkgbase: String, pub approved: String, |
