diff options
| author | aur-build <aur-build@localhost> | 2026-11-23 13:56:40 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-23 13:56:40 +0000 |
| commit | 6872e81644546a9ccd0e1420c3ef64a26358f78a (patch) | |
| tree | d9474a30cca7a22fe673e569c5dd3e3bbf5aab9c /tests/state_machine.rs | |
| parent | 4c143e969dcd7b6a18e5a86f9a754c9b62979ccf (diff) | |
| download | aur-build-6872e81644546a9ccd0e1420c3ef64a26358f78a.tar.gz aur-build-6872e81644546a9ccd0e1420c3ef64a26358f78a.zip | |
tests: the ratchet says what the code says now
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.
Diffstat (limited to 'tests/state_machine.rs')
| -rw-r--r-- | tests/state_machine.rs | 5 |
1 files changed, 0 insertions, 5 deletions
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( |
