2023-07-18 18:32:38 +00:00
|
|
|
#[allow(unused_macros)]
|
|
|
|
macro_rules! assert_empty_val {
|
|
|
|
($tx:expr, $key:expr) => {{
|
|
|
|
let r = $tx.get($key).await?;
|
|
|
|
assert!(r.is_none());
|
|
|
|
}};
|
|
|
|
}
|
|
|
|
|
|
|
|
#[allow(unused_macros)]
|
|
|
|
macro_rules! assert_empty_prefix {
|
|
|
|
($tx:expr, $rng:expr) => {{
|
2024-07-17 22:44:05 +00:00
|
|
|
let r = $tx.getp($rng).await?;
|
2023-07-18 18:32:38 +00:00
|
|
|
assert!(r.is_empty());
|
|
|
|
}};
|
|
|
|
}
|
|
|
|
|
|
|
|
#[allow(unused_macros)]
|
|
|
|
macro_rules! assert_empty_range {
|
|
|
|
($tx:expr, $rng:expr) => {{
|
2024-07-17 22:44:05 +00:00
|
|
|
let r = $tx.getr($rng).await?;
|
2023-07-18 18:32:38 +00:00
|
|
|
assert!(r.is_empty());
|
|
|
|
}};
|
|
|
|
}
|