[−][src]Struct qbsdiff_test_bench_utils::Testing
The testing context.
Methods
impl Testing
[src]
pub fn new(assets_dir: PathBuf) -> Self
[src]
Create new tesing context.
pub fn bsdiff(&self, s: &[u8], t: &[u8]) -> Result<Vec<u8>>
[src]
Execute bsdiff command.
pub fn bspatch(&self, s: &[u8], p: &[u8]) -> Result<Vec<u8>>
[src]
Execute bspatch command.
pub fn qbsdiff(&self, s: &[u8], t: &[u8]) -> Result<Vec<u8>>
[src]
Perform qbsdiff.
pub fn qbsdiff_with(
&self,
s: &[u8],
t: &[u8],
opts: QbsdiffOptions
) -> Result<Vec<u8>>
[src]
&self,
s: &[u8],
t: &[u8],
opts: QbsdiffOptions
) -> Result<Vec<u8>>
Perform qbsdiff with options.
pub fn qbspatch(&self, s: &[u8], p: &[u8]) -> Result<Vec<u8>>
[src]
Perform qbspatch.
pub fn qbspatch_with(
&self,
s: &[u8],
p: &[u8],
opts: QbspatchOptions
) -> Result<Vec<u8>>
[src]
&self,
s: &[u8],
p: &[u8],
opts: QbspatchOptions
) -> Result<Vec<u8>>
Perform qbspatch with options.
pub fn get_regular_samples(&self) -> Result<Vec<Sample>>
[src]
Get regular samples.
pub fn get_pathological_samples(&self) -> Result<Vec<Sample>>
[src]
Get pathological samples.
pub fn get_random_samples(&self, descs: &[RandomSample]) -> Result<Vec<Sample>>
[src]
Prepare random samples if needed and get the sample list.
pub fn load_cached_patch(&self, sample: &Sample) -> Result<Vec<u8>>
[src]
Run bsdiff to generate patch if cache does not exist then load the cache.
Auto Trait Implementations
impl RefUnwindSafe for Testing
impl Send for Testing
impl Sync for Testing
impl Unpin for Testing
impl UnwindSafe for Testing
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,