test(probe): add HDR fixture coverage (#72)
ci / rust (push) Successful in 1m23s
ci / web (push) Successful in 29s
e2e / e2e (push) Successful in 1m33s

This commit was merged in pull request #72.
This commit is contained in:
2026-08-22 21:50:13 +01:00
parent 0b7565189e
commit 403593cda1
4 changed files with 36 additions and 0 deletions
Binary file not shown.
Binary file not shown.
+22
View File
@@ -86,6 +86,28 @@ async fn hdr10_comes_from_the_transfer_function() {
assert_eq!(file.media.hdr, HdrFormat::Hdr10);
}
#[tokio::test]
async fn hlg_comes_from_the_transfer_function() {
let file = Prober::new()
.probe(fixture("hlg-720p.mkv"))
.await
.expect("the fixture is readable");
assert_eq!(file.video_codec, "hevc");
assert_eq!(file.media.hdr, HdrFormat::Hlg);
}
#[tokio::test]
async fn ten_bit_hevc_without_hdr_transfer_is_sdr() {
let file = Prober::new()
.probe(fixture("sdr-10bit-hevc-720p.mkv"))
.await
.expect("the fixture is readable");
assert_eq!(file.video_codec, "hevc");
assert_eq!(file.media.hdr, HdrFormat::Sdr);
}
#[tokio::test]
async fn dolby_vision_profile_5_is_reported_as_a_number() {
let file = Prober::new()