summaryrefslogtreecommitdiffstats
path: root/tests/invariants.rs
diff options
context:
space:
mode:
authoraur-build <aur-build@localhost>2026-11-19 18:13:13 +0000
committeraur-build <aur-build@localhost>2026-11-19 18:13:13 +0000
commit893763060ec01d356ade9f6c011519a7f47a92e9 (patch)
treec59e72a49318f20b7124d6c302be0e4a0ac31c73 /tests/invariants.rs
parent7841c4afe8759c39cf4556953122aea5a6de71b4 (diff)
downloadaur-build-893763060ec01d356ade9f6c011519a7f47a92e9.tar.gz
aur-build-893763060ec01d356ade9f6c011519a7f47a92e9.zip
docs: drop the citations the deleted docs left behind
The §n, I-n, M-n and m-n references survived in string literals the comment strip never touched: migration SQL comments, assertion messages, runtime error text, Cargo.toml, a CSS and template note, and one corpus manifest. They named sections of files that no longer exist, so the prose stays and the citation goes.
Diffstat (limited to 'tests/invariants.rs')
-rw-r--r--tests/invariants.rs24
1 files changed, 12 insertions, 12 deletions
diff --git a/tests/invariants.rs b/tests/invariants.rs
index d5b3758..4bfffc8 100644
--- a/tests/invariants.rs
+++ b/tests/invariants.rs
@@ -47,7 +47,7 @@ fn i1_every_index_entry_traces_back_to_an_approval() {
WHERE p.state='in_index' AND (r.id IS NULL OR r.approval_id IS NULL)"
),
0,
- "I1: an index entry exists that no human approved"
+ "an index entry exists that no human approved"
);
assert_eq!(
count(&env, "SELECT count(*) FROM approval WHERE decision='approved'"),
@@ -73,7 +73,7 @@ fn i2_base_is_the_last_accepted_version_after_many_detections() {
assert_eq!(
open[0].base_release_id,
Some(accepted.id),
- "I2: the diff base must be the accepted release ({}), not the last seen commit",
+ "the diff base must be the accepted release ({}), not the last seen commit",
accepted.id
);
let panels = diff::panels(&env.cfg, &env.db, &open[0], Some(&accepted)).unwrap();
@@ -105,7 +105,7 @@ fn i4_kill_mid_publish_leaves_the_old_index_byte_identical() {
assert_eq!(
std::fs::read(&db_file).unwrap(),
old_bytes,
- "I4: the served index was torn by a crash"
+ "the served index was torn by a crash"
);
assert_eq!(
query_pairs(&env, "SELECT name, version FROM package WHERE state='in_index'"),
@@ -144,13 +144,13 @@ fn i5_resume_after_a_crash_repeats_no_completed_step() {
assert_eq!(
aur_build::shims::called_with(&shim, "makepkg", ""),
builds_before,
- "I5: resuming re-ran the build step"
+ "resuming re-ran the build step"
);
assert_eq!(count(&env, "SELECT count(*) FROM release WHERE pkgver='2.0'"), 1);
assert_eq!(
count(&env, "SELECT count(*) FROM artifact"),
count(&env, "SELECT count(DISTINCT digest) FROM artifact"),
- "I5: the resume recorded a duplicate artifact"
+ "the resume recorded a duplicate artifact"
);
let bad = env
.db
@@ -186,7 +186,7 @@ fn i7_the_schema_refuses_a_second_open_review() {
Ok(())
})
.err();
- assert!(err.is_some(), "I7: a second pending review was accepted");
+ assert!(err.is_some(), "a second pending review was accepted");
assert_eq!(candidates::pending_candidates(&env.db).unwrap().len(), 1);
}
@@ -210,7 +210,7 @@ fn i8_index_equals_the_accepted_pointers() {
"SELECT name, version FROM package WHERE state='in_index'",
);
assert!(!pointers.is_empty());
- assert_eq!(index, pointers, "I8: index and accepted pointers diverge");
+ assert_eq!(index, pointers, "index and accepted pointers diverge");
assert_eq!(
count(&env, "SELECT count(*) FROM package WHERE state='in_index' AND version='1.0-1'"),
@@ -238,7 +238,7 @@ fn i3_materialization_fails_closed_on_the_recipe_pin() {
assert_eq!(step, "materialize");
assert!(error.contains("recipe_hash mismatch"), "{error}");
}
- other => panic!("I3 requires a refusal, got {other:?}"),
+ other => panic!("a fail-closed refusal was required, got {other:?}"),
}
assert_eq!(count(&env, "SELECT count(*) FROM release"), 0);
}
@@ -253,7 +253,7 @@ fn i6_manual_rebuild_publishes_the_same_version_without_a_new_approval() {
pipeline::run(&env.cfg, &env.db, &id).unwrap(),
pipeline::Outcome::Succeeded { .. }
));
- assert_eq!(count(&env, "SELECT count(*) FROM approval"), approvals, "I6: a rebuild demanded a new approval");
+ assert_eq!(count(&env, "SELECT count(*) FROM approval"), approvals, "a rebuild demanded a new approval");
assert_eq!(
query_pairs(&env, "SELECT name, version FROM package WHERE state='in_index'"),
vec![("plain-make".to_string(), "1.0-1".to_string())]
@@ -269,7 +269,7 @@ fn a_manual_rebuild_is_deterministic_and_its_own_build() {
.expect("the published build");
let a = pipeline::enqueue_manual_rebuild(&env.cfg, &env.db, "plain-make").unwrap();
let b = pipeline::enqueue_manual_rebuild(&env.cfg, &env.db, "plain-make").unwrap();
- assert_eq!(a, b, "clicking rebuild twice is one build, not two (§8.2)");
+ assert_eq!(a, b, "clicking rebuild twice is one build, not two");
assert_ne!(a, original, "a rebuild is a distinct build from the one that landed");
assert_eq!(
count(&env, "SELECT count(*) FROM build"),
@@ -329,7 +329,7 @@ fn i12_every_build_records_a_world_snapshot() {
assert_eq!(
count(&env, "SELECT count(*) FROM build WHERE world_snapshot_id IS NULL AND state='succeeded'"),
0,
- "I12: a succeeded build has no recorded world"
+ "a succeeded build has no recorded world"
);
let members = env
.db
@@ -344,7 +344,7 @@ fn i12_every_build_records_a_world_snapshot() {
})
.unwrap();
assert!(members.contains("plain-make"), "our own package belongs in the world");
- assert!(!members.contains("glibc"), "foreign packages must be filtered out (§10.1)");
+ assert!(!members.contains("glibc"), "foreign packages must be filtered out");
}
fn index_db_names(path: &std::path::Path) -> Vec<String> {