Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
style(recording): use inline format strings in tests
Richie McIlroye578e07aea83
diff --git a/crates/recording/tests/hardware_instant_recording.rs b/crates/recording/tests/hardware_instant_recording.rsindex ead4d9f3c..f99c758a5 100644--- a/crates/recording/tests/hardware_instant_recording.rs+++ b/crates/recording/tests/hardware_instant_recording.rs@@ -250,7 +250,7 @@ async fn instant_record_with_real_mic_and_screen() {.filter_map(|p| std::fs::metadata(p).ok()).map(|m| m.len()).sum();- eprintln!(" Total video segment size: {} bytes", total_segment_size);+ eprintln!(" Total video segment size: {total_segment_size} bytes");assert!(total_segment_size > 1000,"segments should have substantial data, got {total_segment_size} bytes"@@ -285,7 +285,7 @@ async fn instant_record_with_real_mic_and_screen() {.expect("Video segment concatenation should succeed");assert!(assembled_video.exists(), "Assembled video MP4 should exist");let video_size = std::fs::metadata(&assembled_video).unwrap().len();- eprintln!(" Assembled video size: {} bytes", video_size);+ eprintln!(" Assembled video size: {video_size} bytes");assert!(video_size > 1000,"Assembled video should have substantial data"@@ -428,6 +428,6 @@ async fn instant_record_with_real_mic_and_screen() {);eprintln!(" Video duration: {video_dur_secs:.2}s");eprintln!(" Video segments: {}", segment_files.len());- eprintln!(" Total segment size: {} bytes", total_segment_size);+ eprintln!(" Total segment size: {total_segment_size} bytes");eprintln!(" Health: {:?}", completed.health);}diff --git a/crates/recording/tests/instant_mode_scenarios.rs b/crates/recording/tests/instant_mode_scenarios.rsindex 15bac7772..7f4f38a93 100644--- a/crates/recording/tests/instant_mode_scenarios.rs+++ b/crates/recording/tests/instant_mode_scenarios.rs@@ -1049,8 +1049,7 @@ fn manifest_segment_indices_are_sequential() {for window in indices.windows(2) {assert!(window[1] > window[0],- "Segment indices should be strictly increasing: {:?}",- indices+ "Segment indices should be strictly increasing: {indices:?}");}}diff --git a/crates/recording/tests/recovery.rs b/crates/recording/tests/recovery.rsindex 6ab9d52bd..dec50c9c7 100644--- a/crates/recording/tests/recovery.rs+++ b/crates/recording/tests/recovery.rs@@ -1388,10 +1388,8 @@ fn finalize_to_progressive_mp4_includes_respawn_fragments() {assert!(duration.as_secs_f64() > baseline_duration.as_secs_f64() * 1.5,- "finalized duration {:?} must be substantially longer than single-dir baseline {:?} \- when respawn fragments exist",- duration,- baseline_duration+ "finalized duration {duration:?} must be substantially longer than single-dir baseline \+ {baseline_duration:?} when respawn fragments exist");assert!(diff --git a/crates/recording/tests/segmented_pipeline.rs b/crates/recording/tests/segmented_pipeline.rsindex 3c8b06799..48cd20331 100644--- a/crates/recording/tests/segmented_pipeline.rs+++ b/crates/recording/tests/segmented_pipeline.rs@@ -226,8 +226,7 @@ fn segment_events_can_build_upload_manifest() {let exists = p.exists() || m4s_path.exists() || tmp_path.exists();assert!(exists,- "segment file should exist on disk (checking {:?}, {:?}, {:?})",- p, m4s_path, tmp_path+ "segment file should exist on disk (checking {p:?}, {m4s_path:?}, {tmp_path:?})");}}