[core] Format: rustfmt on the URL redaction tests

This commit is contained in:
2026-11-07 19:22:40 +01:00
parent 85edfa7128
commit 421800ec18
2 changed files with 15 additions and 4 deletions
+12 -3
View File
@@ -801,8 +801,17 @@ mod shown_tests {
assert_eq!(shown_url("user:hunter2@host:80"), "\u{2026}@host:80");
assert_eq!(shown_url("http://10.0.0.1:80"), "http://10.0.0.1:80");
assert_eq!(shown_url("http://h/a@b"), "http://\u{2026}@b");
assert_eq!(shown_url("http://admin:hunter/2@10.0.0.1:80"), "http://\u{2026}@10.0.0.1:80");
assert_eq!(shown_url("http://admin:hunter?2@10.0.0.1:80"), "http://\u{2026}@10.0.0.1:80");
assert_eq!(shown_url("http://admin:hunter#2@10.0.0.1:80"), "http://\u{2026}@10.0.0.1:80");
assert_eq!(
shown_url("http://admin:hunter/2@10.0.0.1:80"),
"http://\u{2026}@10.0.0.1:80"
);
assert_eq!(
shown_url("http://admin:hunter?2@10.0.0.1:80"),
"http://\u{2026}@10.0.0.1:80"
);
assert_eq!(
shown_url("http://admin:hunter#2@10.0.0.1:80"),
"http://\u{2026}@10.0.0.1:80"
);
}
}