From 6872e81644546a9ccd0e1420c3ef64a26358f78a Mon Sep 17 00:00:00 2001 From: aur-build Date: Mon, 23 Nov 2026 13:56:40 +0000 Subject: tests: the ratchet says what the code says now MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The architecture test's own essays were the largest block of prose left in the tree, and the test-file headers were notes about which tests moved into `src/` — history the file no longer needs. Removing those mentions moved two measured numbers, and the ratchet was right to complain. `db.Writer` now sits in the allowlist with the compiler fact that keeps it `pub` — narrowing it makes every call site say `type db::Writer is private` — and the counts that got smaller are written back at the smaller value, as the ratchet demands. --- tests/state_machine.rs | 5 ----- 1 file changed, 5 deletions(-) (limited to 'tests/state_machine.rs') diff --git a/tests/state_machine.rs b/tests/state_machine.rs index d90bf20..465b8e1 100644 --- a/tests/state_machine.rs +++ b/tests/state_machine.rs @@ -5,11 +5,6 @@ use aur_build::db::{ model::{BuildState, CandidateState, StepState}, }; use common::Env; -// What remains all moves real rows through real transitions against a -// database. The two tests that were only about the state enum — the column-text -// round trip and the shape of the transition table — moved into -// src/db/model/build_state.rs, where the enum and its table are declared, and -// so did the one pure table assertion that a fixture test was making. fn build(env: &Env, id: &str) -> String { env.exec( -- cgit v1.2.3