wire.rs back to LF; no literal line breaks inside Rust strings; the capped test is named for what it pins
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
parent
dcd8f2116b
commit
ae3279cdf0
4 changed files with 566 additions and 569 deletions
|
|
@ -589,7 +589,7 @@ mod tests {
|
|||
/// A feed of exactly one full page goes on to the next page, and a short page ends it; a repo whose feed runs past the page cap
|
||||
/// is named in `capped` instead of ending quietly.
|
||||
#[test]
|
||||
fn a_full_feed_page_asks_for_the_next_and_a_repo_past_the_cap_says_more() {
|
||||
fn a_full_feed_page_asks_for_the_next_and_a_repo_past_the_cap_is_named() {
|
||||
let wanted = repos(&["GameCult/Huginn"]);
|
||||
let entries: Vec<Value> = (0..53).map(|n| push_at(1000 - n, "GameCult/Huginn", "Nibu", 5)).collect();
|
||||
let (base, asked) = forge_of(move |path| if is_feed(path) { repo_feed(&entries, path) } else { Some("[]".into()) });
|
||||
|
|
|
|||
File diff suppressed because it is too large
Load diff
|
|
@ -2161,8 +2161,7 @@ fn repo_notice_line(activity: &RepoActivity, at_unix_ms: u64) -> Option<String>
|
|||
text.push_str(letters.as_str());
|
||||
text.push('.');
|
||||
}
|
||||
Some(format!("notice role=organ at={} text={}
|
||||
", at_text(at_unix_ms), quoted(&text)))
|
||||
Some(format!("notice role=organ at={} text={}\n", at_text(at_unix_ms), quoted(&text)))
|
||||
}
|
||||
|
||||
/// The most the wear section may take of a first line.
|
||||
|
|
|
|||
|
|
@ -4886,10 +4886,8 @@ fn a_redirected_unseen_repo_is_told_with_where_the_forge_points() {
|
|||
0,
|
||||
);
|
||||
let wear = render_wear(0, &facts);
|
||||
assert!(wear.contains("- a repo the forge read cannot see: GameCult/cinny (the forge redirects it to GameCult/Ratatoskr)
|
||||
"), "{wear}");
|
||||
assert!(wear.contains("- a repo the forge read cannot see: GameCult/gamecult-ops
|
||||
"), "{wear}");
|
||||
assert!(wear.contains("- a repo the forge read cannot see: GameCult/cinny (the forge redirects it to GameCult/Ratatoskr)\n"), "{wear}");
|
||||
assert!(wear.contains("- a repo the forge read cannot see: GameCult/gamecult-ops\n"), "{wear}");
|
||||
}
|
||||
|
||||
/// The polls after the first interval are still one read per interval: over 750 s of polls at 5 s the forge is asked at the start
|
||||
|
|
|
|||
Loading…
Reference in a new issue