diff options
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, |
