pub struct AudioDecoderOutputTest {
pub output_file: Option<&'static str>,
pub stream: Rc<dyn ElementaryStream>,
pub expected_output_size: OutputSize,
pub expected_digests: Option<Vec<ExpectedDigest>>,
pub expected_output_format: FormatDetails,
}
Expand description
A hash test runs audio through the encoder and checks that all that data emitted when hashed sequentially results in the expected digest. Oob bytes are hashed first.
Fields§
§output_file: Option<&'static str>
If provided, the output will also be written to this file. Use this to verify new files with a decoder before using their digest in tests.
stream: Rc<dyn ElementaryStream>
§expected_output_size: OutputSize
§expected_digests: Option<Vec<ExpectedDigest>>
§expected_output_format: FormatDetails
Auto Trait Implementations§
impl Freeze for AudioDecoderOutputTest
impl !RefUnwindSafe for AudioDecoderOutputTest
impl !Send for AudioDecoderOutputTest
impl !Sync for AudioDecoderOutputTest
impl Unpin for AudioDecoderOutputTest
impl !UnwindSafe for AudioDecoderOutputTest
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more