From ff7eb399b19dcdb57fbfe43dedb7a3b07112dee3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ahmet=20Kaan=20G=C3=BCm=C3=BC=C5=9F?= Date: Wed, 2 Dec 2026 04:45:01 +0300 Subject: [PATCH] Strip doc comments added by M7 test migration (no comments in code rule) --- crates/ec-matroska/tests/field_order.rs | 1 - crates/ec-mp4/tests/it/edit_trim.rs | 2 -- crates/ec-mp4/tests/it/edith_parity.rs | 1 - crates/ec-mp4/tests/it/mux_entries.rs | 1 - crates/ec-mp4/tests/it/prores_entries.rs | 1 - crates/ec-mp4/tests/it/qt_pcm_hdr.rs | 1 - crates/ec-mpegts/tests/it/common.rs | 3 --- crates/ec-mpegts/tests/it/mpeg2.rs | 1 - crates/ec-mpegts/tests/it/ps.rs | 1 - crates/ec-mpegts/tests/it/truehd.rs | 1 - crates/ec-ogg/tests/real_library.rs | 3 --- crates/ec-probe/tests/library.rs | 2 -- crates/ec-probe/tests/matrix.rs | 1 - crates/ec-riff/tests/it/avi_raw_dv.rs | 1 - crates/ec-riff/tests/it/avi_video.rs | 1 - crates/ec-riff/tests/it/mov_raw.rs | 1 - 16 files changed, 22 deletions(-) diff --git a/crates/ec-matroska/tests/field_order.rs b/crates/ec-matroska/tests/field_order.rs index dc6e1ed4..23e85710 100644 --- a/crates/ec-matroska/tests/field_order.rs +++ b/crates/ec-matroska/tests/field_order.rs @@ -3,7 +3,6 @@ //! because ffmpeg's HEVC decoder cannot derive it from the bitstream and //! reports `unknown` without them. //! -//! Sources are synthetic (ffmpeg `testsrc2`). use std::fs::File; use std::io::{BufReader, BufWriter}; diff --git a/crates/ec-mp4/tests/it/edit_trim.rs b/crates/ec-mp4/tests/it/edit_trim.rs index 964ca28f..6694acc6 100644 --- a/crates/ec-mp4/tests/it/edit_trim.rs +++ b/crates/ec-mp4/tests/it/edit_trim.rs @@ -50,7 +50,6 @@ fn default_output() -> Vec { muxer.into_inner().into_inner() } -/// The MD5 of `bytes`, from the `md5sum` tool. fn md5_of(bytes: &[u8]) -> String { let dir = std::env::temp_dir().join("ec-mp4-edit-trim"); std::fs::create_dir_all(&dir).expect("work dir"); @@ -86,7 +85,6 @@ fn payload_u32(bytes: &[u8], kind: &[u8; 4], offset: usize) -> Option { Some(u32::from_be_bytes([raw[0], raw[1], raw[2], raw[3]])) } -/// `key=value` lines from `ffprobe`, keyed by name. fn ffprobe_fields(path: &Path, select: &str, entries: &str) -> Vec<(String, String)> { let out = ec_testkit::ffprobe() .args([ diff --git a/crates/ec-mp4/tests/it/edith_parity.rs b/crates/ec-mp4/tests/it/edith_parity.rs index cdaa152a..c982f99c 100644 --- a/crates/ec-mp4/tests/it/edith_parity.rs +++ b/crates/ec-mp4/tests/it/edith_parity.rs @@ -3,7 +3,6 @@ //! for field. This is the swap criterion for edith's `mp4::` demuxer: identical //! packet bytes, identical timestamps, identical stream metadata. //! -//! The corpus is the generated `mp4corpus/` family under the fixtures root. //! //! Per track, the comparison is: codec, coded size, sample rate, channels, //! timebase, rotation, and per sample the byte offset, size, presentation time diff --git a/crates/ec-mp4/tests/it/mux_entries.rs b/crates/ec-mp4/tests/it/mux_entries.rs index 65ca6124..7b820381 100644 --- a/crates/ec-mp4/tests/it/mux_entries.rs +++ b/crates/ec-mp4/tests/it/mux_entries.rs @@ -201,7 +201,6 @@ fn has_encoder(encoder: &str) -> bool { .is_ok_and(|o| String::from_utf8_lossy(&o.stdout).contains(&format!(" {encoder} "))) } -/// Makes the source for `case` at `path`. fn make_source(case: &Case, path: &Path) { assert!( has_encoder(case.encoder), diff --git a/crates/ec-mp4/tests/it/prores_entries.rs b/crates/ec-mp4/tests/it/prores_entries.rs index 1192dc23..61652ac7 100644 --- a/crates/ec-mp4/tests/it/prores_entries.rs +++ b/crates/ec-mp4/tests/it/prores_entries.rs @@ -1,5 +1,4 @@ //! The ProRes sample entries (`apco apcs apcn apch ap4h ap4x`) read as `CodecId::ProRes`. Each -//! source is a one-frame ffmpeg `prores_ks` mov written at test time. use std::fs::File; use std::io::BufReader; diff --git a/crates/ec-mp4/tests/it/qt_pcm_hdr.rs b/crates/ec-mp4/tests/it/qt_pcm_hdr.rs index eddbc6cf..ef10bb9a 100644 --- a/crates/ec-mp4/tests/it/qt_pcm_hdr.rs +++ b/crates/ec-mp4/tests/it/qt_pcm_hdr.rs @@ -1,7 +1,6 @@ //! QuickTime PCM sound descriptions (`in24`, `in32`, `fl32` with `wave/enda` //! and `chan`) and the HDR `mdcv`/`clli` boxes, checked against ffmpeg. //! -//! Sources are synthetic (ffmpeg `sine`, `testsrc2`). use std::fs::File; use std::io::{BufReader, BufWriter}; diff --git a/crates/ec-mpegts/tests/it/common.rs b/crates/ec-mpegts/tests/it/common.rs index 68cc6637..67d48238 100644 --- a/crates/ec-mpegts/tests/it/common.rs +++ b/crates/ec-mpegts/tests/it/common.rs @@ -1,4 +1,3 @@ -//! Shared helpers: ffmpeg fixtures and packet dumps. #![allow(dead_code)] use std::collections::HashMap; @@ -33,7 +32,6 @@ pub const AUDIO_SRC: &[&str] = &[ "sine=frequency=440:sample_rate=48000:duration=3", ]; -/// Runs ffmpeg; `Err` carries stderr. pub fn ffmpeg(args: &[&str], out: &Path) -> Result<(), String> { let o = ec_testkit::ffmpeg() .args(["-v", "error", "-y"]) @@ -48,7 +46,6 @@ pub fn ffmpeg(args: &[&str], out: &Path) -> Result<(), String> { } } -/// Generates `name` with `args` (input options included). pub fn fixture(name: &str, args: &[&str]) -> PathBuf { // Tests run on threads of one process: one generates a given file at a time. static LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(()); diff --git a/crates/ec-mpegts/tests/it/mpeg2.rs b/crates/ec-mpegts/tests/it/mpeg2.rs index 0e3c403f..f5e94f63 100644 --- a/crates/ec-mpegts/tests/it/mpeg2.rs +++ b/crates/ec-mpegts/tests/it/mpeg2.rs @@ -1,6 +1,5 @@ //! MPEG-1/2 video in transport streams: exposed as `CodecId::Mpeg2Video`, one //! packet per coded picture, parameters from the sequence header. Fixtures come from -//! ffmpeg's synthetic testsrc2. use crate::common::*; use ec_core::registry::Demuxer; diff --git a/crates/ec-mpegts/tests/it/ps.rs b/crates/ec-mpegts/tests/it/ps.rs index 7b3b9ec5..470480a6 100644 --- a/crates/ec-mpegts/tests/it/ps.rs +++ b/crates/ec-mpegts/tests/it/ps.rs @@ -2,7 +2,6 @@ //! ffmpeg's demux on ffmpeg-made files (bytes, sizes, timestamps, key flags), //! duration, seek exactness, SCR resets, PTS wraps and damaged files. //! -//! Fixtures are generated at test time from synthetic sources. use std::fs::File; use std::io::BufReader; diff --git a/crates/ec-mpegts/tests/it/truehd.rs b/crates/ec-mpegts/tests/it/truehd.rs index 47d88b2e..7dce65b1 100644 --- a/crates/ec-mpegts/tests/it/truehd.rs +++ b/crates/ec-mpegts/tests/it/truehd.rs @@ -2,7 +2,6 @@ //! through `ec-truehd` to the PCM ffmpeg decodes from the same file, sample for sample. //! //! The fixture is made at test time by ffmpeg's own TrueHD encoder (a 440 Hz sine, -//! lavfi, no external media). use std::path::Path; diff --git a/crates/ec-ogg/tests/real_library.rs b/crates/ec-ogg/tests/real_library.rs index 5fc9397d..c2666f28 100644 --- a/crates/ec-ogg/tests/real_library.rs +++ b/crates/ec-ogg/tests/real_library.rs @@ -1,5 +1,3 @@ -//! A real Ogg file, `open/sintel_trailer-480p.ogv`, is read by [`OggDemuxer`] -//! end to end and compared with ffmpeg/ffprobe. //! //! Per file the oracle checks: //! - packet count and every packet's size (ffprobe, audio stream 0); @@ -30,7 +28,6 @@ //! //! Scope: demux only. The decoded PCM is not compared here. //! -//! The file either matches or fails. A refusal is a failure here. use std::path::Path; diff --git a/crates/ec-probe/tests/library.rs b/crates/ec-probe/tests/library.rs index 6e3b2adb..2e10542e 100644 --- a/crates/ec-probe/tests/library.rs +++ b/crates/ec-probe/tests/library.rs @@ -1,5 +1,3 @@ -//! Real AVI and MP3 files from the open fixtures: open, decode and seek them, -//! and compare what the probe says against ffmpeg. use std::fs::File; use std::io::{Read, Seek, SeekFrom}; diff --git a/crates/ec-probe/tests/matrix.rs b/crates/ec-probe/tests/matrix.rs index 61e97d7f..76312601 100644 --- a/crates/ec-probe/tests/matrix.rs +++ b/crates/ec-probe/tests/matrix.rs @@ -3,7 +3,6 @@ //! where it says it does after a hundred random seeks — on one reader. //! //! Oracle is ffmpeg/ffprobe (labelled as such: this is not a conformance -//! claim). use std::path::{Path, PathBuf}; diff --git a/crates/ec-riff/tests/it/avi_raw_dv.rs b/crates/ec-riff/tests/it/avi_raw_dv.rs index 44fc0cb3..a809e37b 100644 --- a/crates/ec-riff/tests/it/avi_raw_dv.rs +++ b/crates/ec-riff/tests/it/avi_raw_dv.rs @@ -1,6 +1,5 @@ //! Uncompressed video in AVI and DV type-1 AVI (`iavs`). Media is synthetic, written by ffmpeg //! at test time; ffmpeg cannot write type-1 AVI, so that wrapper is built here from a `.dv` -//! file. use std::io::Cursor; use std::path::PathBuf; diff --git a/crates/ec-riff/tests/it/avi_video.rs b/crates/ec-riff/tests/it/avi_video.rs index 10a6585d..1be7d01a 100644 --- a/crates/ec-riff/tests/it/avi_video.rs +++ b/crates/ec-riff/tests/it/avi_video.rs @@ -1,6 +1,5 @@ //! AVI audio+video demuxer tests. Real files are synthetic, written by ffmpeg at test time and //! checked against `ffprobe -show_packets`; the OpenDML, scan and vprp cases are hand-built -//! byte by byte. use std::io::Cursor; use std::path::PathBuf; diff --git a/crates/ec-riff/tests/it/mov_raw.rs b/crates/ec-riff/tests/it/mov_raw.rs index 0fa263b0..8d905cb4 100644 --- a/crates/ec-riff/tests/it/mov_raw.rs +++ b/crates/ec-riff/tests/it/mov_raw.rs @@ -1,5 +1,4 @@ //! Uncompressed video in QuickTime (`raw `, `2vuy`, `yuv2`, `v210`, `v410`, `b16g`), compared -//! with ffmpeg's decode of the same .mov. Media is synthetic. use std::path::PathBuf;