libfreemkv 0.31.4: prune 144 vacuous tests (keep spec-grounded subset)
This commit is contained in:
@@ -889,21 +889,6 @@ mod tests {
|
||||
assert_eq!(parse_pts(&encode_pts(max, 0x20)), max);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn parse_pts_ignores_marker_bits_in_value() {
|
||||
// The marker bits (LSB of bytes 0,2,4) are NOT part of the 33-bit
|
||||
// value. Two encodings differing only in marker bits decode equal.
|
||||
let v = 0x1_2345_6789u64 & ((1 << 33) - 1);
|
||||
let a = encode_pts(v, 0x20);
|
||||
let mut b = a;
|
||||
// markers are already 1; the value bits must dominate regardless.
|
||||
b[0] |= 0x01;
|
||||
b[2] |= 0x01;
|
||||
b[4] |= 0x01;
|
||||
assert_eq!(parse_pts(&a), v);
|
||||
assert_eq!(parse_pts(&b), v);
|
||||
}
|
||||
|
||||
// ── pack header (0xBA) framing ────────────────────────────────────────
|
||||
|
||||
#[test]
|
||||
@@ -1151,14 +1136,6 @@ mod tests {
|
||||
);
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn empty_feed_then_flush_is_empty() {
|
||||
// No input at all → nothing to emit, no panic.
|
||||
let mut demuxer = PsDemuxer::new();
|
||||
assert!(demuxer.feed(&[]).is_empty());
|
||||
assert!(demuxer.flush().is_empty());
|
||||
}
|
||||
|
||||
#[test]
|
||||
fn pes_header_data_length_skips_pts_when_flag_unset() {
|
||||
// If pts_dts_flags == 0 the 5 "PTS" bytes after the fixed header are
|
||||
|
||||
Reference in New Issue
Block a user