[domistream] Tests: rustfmt
This commit is contained in:
@@ -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}");
|
||||
|
||||
Reference in New Issue
Block a user