[domistream] Tests: rustfmt

This commit is contained in:
2026-11-25 12:52:38 +01:00
parent 948f446a13
commit da1f3afd52
16 changed files with 1015 additions and 293 deletions
+11 -5
View File
@@ -216,11 +216,17 @@ fn debug_never_prints_keys() {
("VideoCipher", format!("{video:?}")),
("AudioCipher", format!("{audio:?}")),
("ControlConfig", format!("{config:?}")),
("VideoConfig", format!("{:?}", domistream::video::VideoConfig {
packet_size: 1024,
cipher: Some(video.clone()),
frame_timeout: core::time::Duration::from_millis(100),
})),
(
"VideoConfig",
format!(
"{:?}",
domistream::video::VideoConfig {
packet_size: 1024,
cipher: Some(video.clone()),
frame_timeout: core::time::Duration::from_millis(100),
}
),
),
] {
assert!(!leaks_key(&s), "{what} Debug leaks the key: {s}");
assert!(s.contains("redacted"), "{what} Debug should say the key is redacted: {s}");