Struct test_storage::assert_storage::AssertionStorage[][src]

pub struct AssertionStorage<E: Engine> {
    pub store: SyncTestStorage<E>,
    pub ctx: Context,
}

Fields

store: SyncTestStorage<E>ctx: Context

Implementations

impl AssertionStorage<SimulateEngine>[src]

pub fn new_raft_storage_with_store_count(
    count: usize,
    key: &str
) -> (Cluster<ServerCluster>, Self)
[src]

pub fn update_with_key_byte(
    &mut self,
    cluster: &mut Cluster<ServerCluster>,
    key: &[u8]
)
[src]

pub fn delete_ok_for_cluster(
    &mut self,
    cluster: &mut Cluster<ServerCluster>,
    key: &[u8],
    start_ts: impl Into<TimeStamp>,
    commit_ts: impl Into<TimeStamp>
)
[src]

fn get_from_custer(
    &mut self,
    cluster: &mut Cluster<ServerCluster>,
    key: &[u8],
    ts: impl Into<TimeStamp>
) -> Option<Value>
[src]

pub fn get_none_from_cluster(
    &mut self,
    cluster: &mut Cluster<ServerCluster>,
    key: &[u8],
    ts: impl Into<TimeStamp>
)
[src]

pub fn put_ok_for_cluster(
    &mut self,
    cluster: &mut Cluster<ServerCluster>,
    key: &[u8],
    value: &[u8],
    start_ts: impl Into<TimeStamp>,
    commit_ts: impl Into<TimeStamp>
)
[src]

fn two_pc_ok_for_cluster(
    &mut self,
    cluster: &mut Cluster<ServerCluster>,
    prewrite_mutations: Vec<Mutation>,
    key: &[u8],
    commit_keys: Vec<Key>,
    start_ts: impl Into<TimeStamp>,
    commit_ts: impl Into<TimeStamp>
)
[src]

pub fn gc_ok_for_cluster(
    &mut self,
    cluster: &mut Cluster<ServerCluster>,
    region_key: &[u8],
    safe_point: impl Into<TimeStamp>
)
[src]

pub fn test_txn_store_gc3_for_cluster(
    &mut self,
    cluster: &mut Cluster<ServerCluster>,
    key_prefix: u8
)
[src]

impl<E: Engine> AssertionStorage<E>[src]

pub fn get_none(&self, key: &[u8], ts: impl Into<TimeStamp>)[src]

pub fn get_err(&self, key: &[u8], ts: impl Into<TimeStamp>)[src]

pub fn get_ok(&self, key: &[u8], ts: impl Into<TimeStamp>, expect: &[u8])[src]

pub fn batch_get_ok(
    &self,
    keys: &[&[u8]],
    ts: impl Into<TimeStamp>,
    expect: Vec<&[u8]>
)
[src]

pub fn batch_get_command_ok(&self, keys: &[&[u8]], ts: u64, expect: Vec<&[u8]>)[src]

fn expect_not_leader_or_stale_command(&self, err: Error)[src]

fn expect_invalid_tso_err<T>(
    &self,
    resp: Result<T, Error>,
    sts: impl Into<TimeStamp>,
    cmt_ts: impl Into<TimeStamp>
) where
    T: Debug
[src]

pub fn put_ok(
    &self,
    key: &[u8],
    value: &[u8],
    start_ts: impl Into<TimeStamp>,
    commit_ts: impl Into<TimeStamp>
)
[src]

pub fn delete_ok(
    &self,
    key: &[u8],
    start_ts: impl Into<TimeStamp>,
    commit_ts: impl Into<TimeStamp>
)
[src]

pub fn scan_ok(
    &self,
    start_key: &[u8],
    limit: usize,
    ts: impl Into<TimeStamp>,
    expect: Vec<Option<(&[u8], &[u8])>>
)
[src]

pub fn reverse_scan_ok(
    &self,
    start_key: &[u8],
    limit: usize,
    ts: impl Into<TimeStamp>,
    expect: Vec<Option<(&[u8], &[u8])>>
)
[src]

pub fn scan_key_only_ok(
    &self,
    start_key: &[u8],
    limit: usize,
    ts: impl Into<TimeStamp>,
    expect: Vec<Option<&[u8]>>
)
[src]

pub fn prewrite_ok(
    &self,
    mutations: Vec<Mutation>,
    primary: &[u8],
    start_ts: impl Into<TimeStamp>
)
[src]

pub fn prewrite_err(
    &self,
    mutations: Vec<Mutation>,
    primary: &[u8],
    start_ts: impl Into<TimeStamp>
)
[src]

pub fn prewrite_locked(
    &self,
    mutations: Vec<Mutation>,
    primary: &[u8],
    start_ts: impl Into<TimeStamp>,
    expect_locks: Vec<(&[u8], &[u8], TimeStamp)>
)
[src]

pub fn prewrite_conflict(
    &self,
    mutations: Vec<Mutation>,
    cur_primary: &[u8],
    cur_start_ts: impl Into<TimeStamp>,
    confl_key: &[u8],
    confl_ts: impl Into<TimeStamp>
)
[src]

pub fn commit_ok(
    &self,
    keys: Vec<&[u8]>,
    start_ts: impl Into<TimeStamp>,
    commit_ts: impl Into<TimeStamp>,
    actual_commit_ts: impl Into<TimeStamp>
)
[src]

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

pub fn cleanup_ok(
    &self,
    key: &[u8],
    start_ts: impl Into<TimeStamp>,
    current_ts: impl Into<TimeStamp>
)
[src]

pub fn cleanup_err(
    &self,
    key: &[u8],
    start_ts: impl Into<TimeStamp>,
    current_ts: impl Into<TimeStamp>
)
[src]

pub fn rollback_ok(&self, keys: Vec<&[u8]>, start_ts: impl Into<TimeStamp>)[src]

pub fn rollback_err(&self, keys: Vec<&[u8]>, start_ts: impl Into<TimeStamp>)[src]

pub fn scan_locks_ok(
    &self,
    max_ts: impl Into<TimeStamp>,
    start_key: &[u8],
    end_key: &[u8],
    limit: usize,
    expect: Vec<LockInfo>
)
[src]

pub fn resolve_lock_ok(
    &self,
    start_ts: impl Into<TimeStamp>,
    commit_ts: Option<impl Into<TimeStamp>>
)
[src]

pub fn resolve_lock_batch_ok(
    &self,
    start_ts_1: impl Into<TimeStamp>,
    commit_ts_1: impl Into<TimeStamp>,
    start_ts_2: impl Into<TimeStamp>,
    commit_ts_2: impl Into<TimeStamp>
)
[src]

pub fn resolve_lock_with_illegal_tso(
    &self,
    start_ts: impl Into<TimeStamp>,
    commit_ts: Option<impl Into<TimeStamp>>
)
[src]

pub fn gc_ok(&self, safe_point: impl Into<TimeStamp>)[src]

pub fn raw_get_ok(&self, cf: String, key: Vec<u8>, value: Option<Vec<u8>>)[src]

pub fn raw_put_ok(&self, cf: String, key: Vec<u8>, value: Vec<u8>)[src]

pub fn raw_put_err(&self, cf: String, key: Vec<u8>, value: Vec<u8>)[src]

pub fn raw_delete_ok(&self, cf: String, key: Vec<u8>)[src]

pub fn raw_delete_err(&self, cf: String, key: Vec<u8>)[src]

pub fn raw_scan_ok(
    &self,
    cf: String,
    start_key: Vec<u8>,
    limit: usize,
    expect: Vec<(&[u8], &[u8])>
)
[src]

pub fn test_txn_store_gc(&self, key: &str)[src]

pub fn test_txn_store_gc3(&self, key_prefix: u8)[src]

Trait Implementations

impl<E: Clone + Engine> Clone for AssertionStorage<E>[src]

impl Default for AssertionStorage<RocksEngine>[src]

Auto Trait Implementations

impl<E> !RefUnwindSafe for AssertionStorage<E>

impl<E> Send for AssertionStorage<E>

impl<E> Sync for AssertionStorage<E> where
    E: Sync

impl<E> Unpin for AssertionStorage<E> where
    E: Unpin

impl<E> !UnwindSafe for AssertionStorage<E>

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> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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]