Blob store tests

This commit is contained in:
mdecimus
2023-11-12 18:51:31 +01:00
parent cbcd6d0916
commit a3e6d152c9
13 changed files with 447 additions and 242 deletions

View File

@@ -94,7 +94,7 @@ const FIELDS_OPTIONS: [FieldType; 20] = [
];
#[allow(clippy::mutex_atomic)]
pub async fn test(db: Arc<Store>, do_insert: bool) {
pub async fn test(db: Store, do_insert: bool) {
println!("Running Store query tests...");
let pool = rayon::ThreadPoolBuilder::new()
@@ -215,7 +215,7 @@ pub async fn test(db: Arc<Store>, do_insert: bool) {
test_sort(db).await;
}
pub async fn test_filter(db: Arc<Store>) {
pub async fn test_filter(db: Store) {
/*
let mut fields = AHashMap::default();
for (field_num, field) in FIELDS.iter().enumerate() {
@@ -361,7 +361,7 @@ pub async fn test_filter(db: Arc<Store>) {
*/
}
pub async fn test_sort(db: Arc<Store>) {
pub async fn test_sort(db: Store) {
let mut fields = AHashMap::default();
for (field_num, field) in FIELDS.iter().enumerate() {
fields.insert(field.to_string(), field_num as u8);