diff options
| author | aur-build <aur-build@localhost> | 2026-11-22 10:51:45 +0000 |
|---|---|---|
| committer | aur-build <aur-build@localhost> | 2026-11-22 10:51:45 +0000 |
| commit | 053dfbca8a4955a616e9b2c0f5a5d664c0db7aef (patch) | |
| tree | 969777fa32845f49723c52b1889c4870c98134cf /src/review/diff.rs | |
| parent | 1e1e12e7220a3fd288782ae40f0823db32acf6cb (diff) | |
| download | aur-build-053dfbca8a4955a616e9b2c0f5a5d664c0db7aef.tar.gz aur-build-053dfbca8a4955a616e9b2c0f5a5d664c0db7aef.zip | |
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.
Diffstat (limited to 'src/review/diff.rs')
| -rw-r--r-- | src/review/diff.rs | 12 |
1 files changed, 1 insertions, 11 deletions
diff --git a/src/review/diff.rs b/src/review/diff.rs index f997b3c..afe2a43 100644 --- a/src/review/diff.rs +++ b/src/review/diff.rs @@ -293,17 +293,7 @@ pub fn diff_digest(ps: &[Panel]) -> String { } /// Render a candidate's diff, store its digest on the row, and return it. -/// -/// Test-tier only, and that is worth stating plainly because the number says -/// something alarming at first glance: zero callers in `src/`, seventeen test -/// files. Intake renders through `review::intake::record`, which is the single -/// entry point the pipeline and both front ends use; this is the older, -/// uncomposed form that says "render and store" in two steps. It stays because -/// a test that wants a digest without running intake wants exactly this, and it -/// is gated rather than moved to `tests/common` because it needs this module's -/// private `panels`/`render_text` and `candidates::set_diff_digest` — widening -/// those to let a test out would undo the narrowing this crate just spent a -/// dozen commits doing. +/// Production renders through `review::intake::record`. #[cfg(feature = "test-support")] pub fn render_and_store(db: &Db, cfg: &Config, c: &CandidateRow) -> Result<String> { let base = match c.base_release_id { |
