[][src]Struct qbsdiff_test_bench_utils::Testing

pub struct Testing { /* fields omitted */ }

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]

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]

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]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>,