mirror of
https://github.com/Serial-ATA/lofty-rs
synced 2024-12-13 22:22:31 +00:00
069b7bfc97
We have really good debug/trace logs now. Having them available for test failures is a huge help.
57 lines
1.5 KiB
Rust
57 lines
1.5 KiB
Rust
use crate::oom_test;
|
|
use lofty::config::ParseOptions;
|
|
use lofty::file::AudioFile;
|
|
use lofty::mp4::Mp4File;
|
|
|
|
#[test_log::test]
|
|
fn oom1() {
|
|
oom_test::<Mp4File>("mp4file_read_from/oom-db2665d79ec9c045bdb9c1e9a3d0c93e7e59393e");
|
|
}
|
|
|
|
#[test_log::test]
|
|
fn panic1() {
|
|
let mut reader = crate::get_reader(
|
|
"mp4file_read_from/steam_at_mention_IDX_34_RAND_4491956654166691611931.m4a",
|
|
);
|
|
let _ = Mp4File::read_from(&mut reader, ParseOptions::new());
|
|
}
|
|
|
|
#[test_log::test]
|
|
fn panic2() {
|
|
let mut reader = crate::get_reader(
|
|
"mp4file_read_from/steam_at_mention_IDX_33_RAND_122808229373977607781108.m4a",
|
|
);
|
|
let _ = Mp4File::read_from(&mut reader, ParseOptions::new());
|
|
}
|
|
|
|
#[test_log::test]
|
|
fn panic3() {
|
|
let mut reader = crate::get_reader(
|
|
"mp4file_read_from/steam_at_mention_IDX_60_RAND_135276517902742448802109.m4a",
|
|
);
|
|
let _ = Mp4File::read_from(&mut reader, ParseOptions::new());
|
|
}
|
|
|
|
#[test_log::test]
|
|
fn panic4() {
|
|
let mut reader = crate::get_reader(
|
|
"mp4file_read_from/steam_at_mention_IDX_83_RAND_107070306175668418039559.m4a",
|
|
);
|
|
let _ = Mp4File::read_from(&mut reader, ParseOptions::new());
|
|
}
|
|
|
|
#[test_log::test]
|
|
fn panic5() {
|
|
let mut reader = crate::get_reader(
|
|
"mp4file_read_from/steam_at_mention_IDX_97_RAND_34488648178055098192895.m4a",
|
|
);
|
|
let _ = Mp4File::read_from(&mut reader, ParseOptions::new());
|
|
}
|
|
|
|
#[test_log::test]
|
|
fn panic6() {
|
|
let mut reader = crate::get_reader(
|
|
"mp4file_read_from/ui_steam_smoother_friend_join_IDX_53_RAND_83672409887817275057956.m4a",
|
|
);
|
|
let _ = Mp4File::read_from(&mut reader, ParseOptions::new());
|
|
}
|