From 053dfbca8a4955a616e9b2c0f5a5d664c0db7aef Mon Sep 17 00:00:00 2001 From: aur-build Date: Sun, 22 Nov 2026 10:51:45 +0000 Subject: 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. --- src/db/invariants.rs | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) (limited to 'src/db/invariants.rs') 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> { db.read(|c| { @@ -27,7 +22,6 @@ pub fn unapproved_index_entries(db: &Db) -> Result> { } #[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, -- cgit v1.2.3