Struct qbsdiff_test_bench_utils::Testing
source · pub struct Testing { /* private fields */ }
Expand description
The testing context.
Implementations§
source§impl Testing
impl Testing
sourcepub fn qbsdiff_with(
&self,
s: &[u8],
t: &[u8],
opts: QbsdiffOptions
) -> Result<Vec<u8>>
pub fn qbsdiff_with( &self, s: &[u8], t: &[u8], opts: QbsdiffOptions ) -> Result<Vec<u8>>
Perform qbsdiff with options.
sourcepub fn qbspatch_with(
&self,
s: &[u8],
p: &[u8],
opts: QbspatchOptions
) -> Result<Vec<u8>>
pub fn qbspatch_with( &self, s: &[u8], p: &[u8], opts: QbspatchOptions ) -> Result<Vec<u8>>
Perform qbspatch with options.
sourcepub fn get_regular_samples(&self) -> Result<Vec<Sample>>
pub fn get_regular_samples(&self) -> Result<Vec<Sample>>
Get regular samples.
sourcepub fn get_pathological_samples(&self) -> Result<Vec<Sample>>
pub fn get_pathological_samples(&self) -> Result<Vec<Sample>>
Get pathological samples.
sourcepub fn get_random_samples(&self, descs: &[RandomSample]) -> Result<Vec<Sample>>
pub fn get_random_samples(&self, descs: &[RandomSample]) -> Result<Vec<Sample>>
Prepare random samples if needed and get the sample list.
Auto Trait Implementations§
impl Freeze for Testing
impl RefUnwindSafe for Testing
impl Send for Testing
impl Sync for Testing
impl Unpin for Testing
impl UnwindSafe for Testing
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
source§impl<T> IntoEither for T
impl<T> IntoEither for T
source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moresource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more