Struct test_backup::TestSuite[][src]

pub struct TestSuite {
    pub cluster: Cluster<ServerCluster>,
    pub endpoints: HashMap<u64, LazyWorker<Task>>,
    pub tikv_cli: TikvClient,
    pub context: Context,
    pub ts: TimeStamp,
    pub bg_worker: Worker,
    _env: Arc<Environment>,
}

Fields

cluster: Cluster<ServerCluster>endpoints: HashMap<u64, LazyWorker<Task>>tikv_cli: TikvClientcontext: Contextts: TimeStampbg_worker: Worker_env: Arc<Environment>

Implementations

impl TestSuite[src]

pub fn new(count: usize, sst_max_size: u64) -> TestSuite[src]

pub fn alloc_ts(&mut self) -> TimeStamp[src]

pub fn stop(self)[src]

pub fn must_raw_put(&self, k: Vec<u8>, v: Vec<u8>, cf: String)[src]

pub fn must_kv_prewrite(&self, muts: Vec<Mutation>, pk: Vec<u8>, ts: TimeStamp)[src]

pub fn must_kv_commit(
    &self,
    keys: Vec<Vec<u8>>,
    start_ts: TimeStamp,
    commit_ts: TimeStamp
)
[src]

pub fn must_kv_put(&mut self, key_count: usize, versions: usize)[src]

pub fn backup(
    &self,
    start_key: Vec<u8>,
    end_key: Vec<u8>,
    begin_ts: TimeStamp,
    backup_ts: TimeStamp,
    path: &Path
) -> UnboundedReceiver<BackupResponse>
[src]

pub fn backup_raw(
    &self,
    start_key: Vec<u8>,
    end_key: Vec<u8>,
    cf: String,
    path: &Path
) -> UnboundedReceiver<BackupResponse>
[src]

pub fn admin_checksum(
    &self,
    backup_ts: TimeStamp,
    start: String,
    end: String
) -> (u64, u64, u64)
[src]

pub fn gen_raw_kv(&self, key_idx: u64) -> (String, String)[src]

pub fn raw_kv_checksum(
    &self,
    start: String,
    end: String,
    cf: CfName
) -> (u64, u64, u64)
[src]

Auto Trait Implementations

impl !RefUnwindSafe for TestSuite

impl !Send for TestSuite

impl !Sync for TestSuite

impl Unpin for TestSuite

impl !UnwindSafe for TestSuite

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<V, W> ConvertFrom<W> for V where
    W: ConvertTo<V>, 
[src]

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

impl<T> Instrument for T[src]

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

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

impl<T> Pointable for T[src]

type Init = T

The type for initializers.

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

type Output = T

Should always be Self

impl<T> Sealed<T> for T where
    T: ?Sized
[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>, 
[src]