Strip doc comments added by M7 test migration (no comments in code rule)
Browse files at this commitff7eb399b19dcdb57fbfe43dedb7a3b07112dee3Parent: 064c3af16 changed files +0 -22
- crates/ec-matroska/tests/field_order.rs +0 -1
- crates/ec-mp4/tests/it/edit_trim.rs +0 -2
- crates/ec-mp4/tests/it/edith_parity.rs +0 -1
- crates/ec-mp4/tests/it/mux_entries.rs +0 -1
- crates/ec-mp4/tests/it/prores_entries.rs +0 -1
- crates/ec-mp4/tests/it/qt_pcm_hdr.rs +0 -1
- crates/ec-mpegts/tests/it/common.rs +0 -3
- crates/ec-mpegts/tests/it/mpeg2.rs +0 -1
- crates/ec-mpegts/tests/it/ps.rs +0 -1
- crates/ec-mpegts/tests/it/truehd.rs +0 -1
- crates/ec-ogg/tests/real_library.rs +0 -3
- crates/ec-probe/tests/library.rs +0 -2
- crates/ec-probe/tests/matrix.rs +0 -1
- crates/ec-riff/tests/it/avi_raw_dv.rs +0 -1
- crates/ec-riff/tests/it/avi_video.rs +0 -1
- crates/ec-riff/tests/it/mov_raw.rs +0 -1
crates/ec-matroska/tests/field_order.rsmodified+0 -1
| @@ -3,7 +3,6 @@ | |||
| 3 | //! because ffmpeg's HEVC decoder cannot derive it from the bitstream and | 3 | //! because ffmpeg's HEVC decoder cannot derive it from the bitstream and |
| 4 | //! reports `unknown` without them. | 4 | //! reports `unknown` without them. |
| 5 | //! | 5 | //! |
| 6 | -//! Sources are synthetic (ffmpeg `testsrc2`). | ||
| 7 | 6 | ||
| 8 | use std::fs::File; | 7 | use std::fs::File; |
| 9 | use std::io::{BufReader, BufWriter}; | 8 | use std::io::{BufReader, BufWriter}; |
crates/ec-mp4/tests/it/edit_trim.rsmodified+0 -2
| @@ -50,7 +50,6 @@ fn default_output() -> Vec<u8> { | |||
| 50 | muxer.into_inner().into_inner() | 50 | muxer.into_inner().into_inner() |
| 51 | } | 51 | } |
| 52 | 52 | ||
| 53 | -/// The MD5 of `bytes`, from the `md5sum` tool. | ||
| 54 | fn md5_of(bytes: &[u8]) -> String { | 53 | fn md5_of(bytes: &[u8]) -> String { |
| 55 | let dir = std::env::temp_dir().join("ec-mp4-edit-trim"); | 54 | let dir = std::env::temp_dir().join("ec-mp4-edit-trim"); |
| 56 | std::fs::create_dir_all(&dir).expect("work dir"); | 55 | std::fs::create_dir_all(&dir).expect("work dir"); |
| @@ -86,7 +85,6 @@ fn payload_u32(bytes: &[u8], kind: &[u8; 4], offset: usize) -> Option<u32> { | |||
| 86 | Some(u32::from_be_bytes([raw[0], raw[1], raw[2], raw[3]])) | 85 | Some(u32::from_be_bytes([raw[0], raw[1], raw[2], raw[3]])) |
| 87 | } | 86 | } |
| 88 | 87 | ||
| 89 | -/// `key=value` lines from `ffprobe`, keyed by name. | ||
| 90 | fn ffprobe_fields(path: &Path, select: &str, entries: &str) -> Vec<(String, String)> { | 88 | fn ffprobe_fields(path: &Path, select: &str, entries: &str) -> Vec<(String, String)> { |
| 91 | let out = ec_testkit::ffprobe() | 89 | let out = ec_testkit::ffprobe() |
| 92 | .args([ | 90 | .args([ |
crates/ec-mp4/tests/it/edith_parity.rsmodified+0 -1
| @@ -3,7 +3,6 @@ | |||
| 3 | //! for field. This is the swap criterion for edith's `mp4::` demuxer: identical | 3 | //! for field. This is the swap criterion for edith's `mp4::` demuxer: identical |
| 4 | //! packet bytes, identical timestamps, identical stream metadata. | 4 | //! packet bytes, identical timestamps, identical stream metadata. |
| 5 | //! | 5 | //! |
| 6 | -//! The corpus is the generated `mp4corpus/` family under the fixtures root. | ||
| 7 | //! | 6 | //! |
| 8 | //! Per track, the comparison is: codec, coded size, sample rate, channels, | 7 | //! Per track, the comparison is: codec, coded size, sample rate, channels, |
| 9 | //! timebase, rotation, and per sample the byte offset, size, presentation time | 8 | //! timebase, rotation, and per sample the byte offset, size, presentation time |
crates/ec-mp4/tests/it/mux_entries.rsmodified+0 -1
| @@ -201,7 +201,6 @@ fn has_encoder(encoder: &str) -> bool { | |||
| 201 | .is_ok_and(|o| String::from_utf8_lossy(&o.stdout).contains(&format!(" {encoder} "))) | 201 | .is_ok_and(|o| String::from_utf8_lossy(&o.stdout).contains(&format!(" {encoder} "))) |
| 202 | } | 202 | } |
| 203 | 203 | ||
| 204 | -/// Makes the source for `case` at `path`. | ||
| 205 | fn make_source(case: &Case, path: &Path) { | 204 | fn make_source(case: &Case, path: &Path) { |
| 206 | assert!( | 205 | assert!( |
| 207 | has_encoder(case.encoder), | 206 | has_encoder(case.encoder), |
crates/ec-mp4/tests/it/prores_entries.rsmodified+0 -1
| @@ -1,5 +1,4 @@ | |||
| 1 | //! The ProRes sample entries (`apco apcs apcn apch ap4h ap4x`) read as `CodecId::ProRes`. Each | 1 | //! The ProRes sample entries (`apco apcs apcn apch ap4h ap4x`) read as `CodecId::ProRes`. Each |
| 2 | -//! source is a one-frame ffmpeg `prores_ks` mov written at test time. | ||
| 3 | 2 | ||
| 4 | use std::fs::File; | 3 | use std::fs::File; |
| 5 | use std::io::BufReader; | 4 | use std::io::BufReader; |
crates/ec-mp4/tests/it/qt_pcm_hdr.rsmodified+0 -1
| @@ -1,7 +1,6 @@ | |||
| 1 | //! QuickTime PCM sound descriptions (`in24`, `in32`, `fl32` with `wave/enda` | 1 | //! QuickTime PCM sound descriptions (`in24`, `in32`, `fl32` with `wave/enda` |
| 2 | //! and `chan`) and the HDR `mdcv`/`clli` boxes, checked against ffmpeg. | 2 | //! and `chan`) and the HDR `mdcv`/`clli` boxes, checked against ffmpeg. |
| 3 | //! | 3 | //! |
| 4 | -//! Sources are synthetic (ffmpeg `sine`, `testsrc2`). | ||
| 5 | 4 | ||
| 6 | use std::fs::File; | 5 | use std::fs::File; |
| 7 | use std::io::{BufReader, BufWriter}; | 6 | use std::io::{BufReader, BufWriter}; |
crates/ec-mpegts/tests/it/common.rsmodified+0 -3
| @@ -1,4 +1,3 @@ | |||
| 1 | -//! Shared helpers: ffmpeg fixtures and packet dumps. | ||
| 2 | #![allow(dead_code)] | 1 | #![allow(dead_code)] |
| 3 | 2 | ||
| 4 | use std::collections::HashMap; | 3 | use std::collections::HashMap; |
| @@ -33,7 +32,6 @@ pub const AUDIO_SRC: &[&str] = &[ | |||
| 33 | "sine=frequency=440:sample_rate=48000:duration=3", | 32 | "sine=frequency=440:sample_rate=48000:duration=3", |
| 34 | ]; | 33 | ]; |
| 35 | 34 | ||
| 36 | -/// Runs ffmpeg; `Err` carries stderr. | ||
| 37 | pub fn ffmpeg(args: &[&str], out: &Path) -> Result<(), String> { | 35 | pub fn ffmpeg(args: &[&str], out: &Path) -> Result<(), String> { |
| 38 | let o = ec_testkit::ffmpeg() | 36 | let o = ec_testkit::ffmpeg() |
| 39 | .args(["-v", "error", "-y"]) | 37 | .args(["-v", "error", "-y"]) |
| @@ -48,7 +46,6 @@ pub fn ffmpeg(args: &[&str], out: &Path) -> Result<(), String> { | |||
| 48 | } | 46 | } |
| 49 | } | 47 | } |
| 50 | 48 | ||
| 51 | -/// Generates `name` with `args` (input options included). | ||
| 52 | pub fn fixture(name: &str, args: &[&str]) -> PathBuf { | 49 | pub fn fixture(name: &str, args: &[&str]) -> PathBuf { |
| 53 | // Tests run on threads of one process: one generates a given file at a time. | 50 | // Tests run on threads of one process: one generates a given file at a time. |
| 54 | static LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(()); | 51 | static LOCK: std::sync::Mutex<()> = std::sync::Mutex::new(()); |
crates/ec-mpegts/tests/it/mpeg2.rsmodified+0 -1
| @@ -1,6 +1,5 @@ | |||
| 1 | //! MPEG-1/2 video in transport streams: exposed as `CodecId::Mpeg2Video`, one | 1 | //! MPEG-1/2 video in transport streams: exposed as `CodecId::Mpeg2Video`, one |
| 2 | //! packet per coded picture, parameters from the sequence header. Fixtures come from | 2 | //! packet per coded picture, parameters from the sequence header. Fixtures come from |
| 3 | -//! ffmpeg's synthetic testsrc2. | ||
| 4 | 3 | ||
| 5 | use crate::common::*; | 4 | use crate::common::*; |
| 6 | use ec_core::registry::Demuxer; | 5 | use ec_core::registry::Demuxer; |
crates/ec-mpegts/tests/it/ps.rsmodified+0 -1
| @@ -2,7 +2,6 @@ | |||
| 2 | //! ffmpeg's demux on ffmpeg-made files (bytes, sizes, timestamps, key flags), | 2 | //! ffmpeg's demux on ffmpeg-made files (bytes, sizes, timestamps, key flags), |
| 3 | //! duration, seek exactness, SCR resets, PTS wraps and damaged files. | 3 | //! duration, seek exactness, SCR resets, PTS wraps and damaged files. |
| 4 | //! | 4 | //! |
| 5 | -//! Fixtures are generated at test time from synthetic sources. | ||
| 6 | 5 | ||
| 7 | use std::fs::File; | 6 | use std::fs::File; |
| 8 | use std::io::BufReader; | 7 | use std::io::BufReader; |
crates/ec-mpegts/tests/it/truehd.rsmodified+0 -1
| @@ -2,7 +2,6 @@ | |||
| 2 | //! through `ec-truehd` to the PCM ffmpeg decodes from the same file, sample for sample. | 2 | //! through `ec-truehd` to the PCM ffmpeg decodes from the same file, sample for sample. |
| 3 | //! | 3 | //! |
| 4 | //! The fixture is made at test time by ffmpeg's own TrueHD encoder (a 440 Hz sine, | 4 | //! The fixture is made at test time by ffmpeg's own TrueHD encoder (a 440 Hz sine, |
| 5 | -//! lavfi, no external media). | ||
| 6 | 5 | ||
| 7 | use std::path::Path; | 6 | use std::path::Path; |
| 8 | 7 | ||
crates/ec-ogg/tests/real_library.rsmodified+0 -3
| @@ -1,5 +1,3 @@ | |||
| 1 | -//! A real Ogg file, `open/sintel_trailer-480p.ogv`, is read by [`OggDemuxer`] | ||
| 2 | -//! end to end and compared with ffmpeg/ffprobe. | ||
| 3 | //! | 1 | //! |
| 4 | //! Per file the oracle checks: | 2 | //! Per file the oracle checks: |
| 5 | //! - packet count and every packet's size (ffprobe, audio stream 0); | 3 | //! - packet count and every packet's size (ffprobe, audio stream 0); |
| @@ -30,7 +28,6 @@ | |||
| 30 | //! | 28 | //! |
| 31 | //! Scope: demux only. The decoded PCM is not compared here. | 29 | //! Scope: demux only. The decoded PCM is not compared here. |
| 32 | //! | 30 | //! |
| 33 | -//! The file either matches or fails. A refusal is a failure here. | ||
| 34 | 31 | ||
| 35 | use std::path::Path; | 32 | use std::path::Path; |
| 36 | 33 | ||
crates/ec-probe/tests/library.rsmodified+0 -2
| @@ -1,5 +1,3 @@ | |||
| 1 | -//! Real AVI and MP3 files from the open fixtures: open, decode and seek them, | ||
| 2 | -//! and compare what the probe says against ffmpeg. | ||
| 3 | 1 | ||
| 4 | use std::fs::File; | 2 | use std::fs::File; |
| 5 | use std::io::{Read, Seek, SeekFrom}; | 3 | use std::io::{Read, Seek, SeekFrom}; |
crates/ec-probe/tests/matrix.rsmodified+0 -1
| @@ -3,7 +3,6 @@ | |||
| 3 | //! where it says it does after a hundred random seeks — on one reader. | 3 | //! where it says it does after a hundred random seeks — on one reader. |
| 4 | //! | 4 | //! |
| 5 | //! Oracle is ffmpeg/ffprobe (labelled as such: this is not a conformance | 5 | //! Oracle is ffmpeg/ffprobe (labelled as such: this is not a conformance |
| 6 | -//! claim). | ||
| 7 | 6 | ||
| 8 | use std::path::{Path, PathBuf}; | 7 | use std::path::{Path, PathBuf}; |
| 9 | 8 | ||
crates/ec-riff/tests/it/avi_raw_dv.rsmodified+0 -1
| @@ -1,6 +1,5 @@ | |||
| 1 | //! Uncompressed video in AVI and DV type-1 AVI (`iavs`). Media is synthetic, written by ffmpeg | 1 | //! Uncompressed video in AVI and DV type-1 AVI (`iavs`). Media is synthetic, written by ffmpeg |
| 2 | //! at test time; ffmpeg cannot write type-1 AVI, so that wrapper is built here from a `.dv` | 2 | //! at test time; ffmpeg cannot write type-1 AVI, so that wrapper is built here from a `.dv` |
| 3 | -//! file. | ||
| 4 | 3 | ||
| 5 | use std::io::Cursor; | 4 | use std::io::Cursor; |
| 6 | use std::path::PathBuf; | 5 | use std::path::PathBuf; |
crates/ec-riff/tests/it/avi_video.rsmodified+0 -1
| @@ -1,6 +1,5 @@ | |||
| 1 | //! AVI audio+video demuxer tests. Real files are synthetic, written by ffmpeg at test time and | 1 | //! AVI audio+video demuxer tests. Real files are synthetic, written by ffmpeg at test time and |
| 2 | //! checked against `ffprobe -show_packets`; the OpenDML, scan and vprp cases are hand-built | 2 | //! checked against `ffprobe -show_packets`; the OpenDML, scan and vprp cases are hand-built |
| 3 | -//! byte by byte. | ||
| 4 | 3 | ||
| 5 | use std::io::Cursor; | 4 | use std::io::Cursor; |
| 6 | use std::path::PathBuf; | 5 | use std::path::PathBuf; |
crates/ec-riff/tests/it/mov_raw.rsmodified+0 -1
| @@ -1,5 +1,4 @@ | |||
| 1 | //! Uncompressed video in QuickTime (`raw `, `2vuy`, `yuv2`, `v210`, `v410`, `b16g`), compared | 1 | //! Uncompressed video in QuickTime (`raw `, `2vuy`, `yuv2`, `v210`, `v410`, `b16g`), compared |
| 2 | -//! with ffmpeg's decode of the same .mov. Media is synthetic. | ||
| 3 | 2 | ||
| 4 | use std::path::PathBuf; | 3 | use std::path::PathBuf; |
| 5 | 4 | ||