about summary refs log blame commit diff
path: root/tvix/store/src/tests/utils.rs
blob: 2991feed41db840cbe393777c5194c0378b7f5ef (plain) (tree)
1
2
3
4
5
6
7
8
9
10
            
                                                  

                                                                 

  
                                                                               
                                

 
                                                                                         
                                     

 
                                                       
                                    
 
use crate::{
    blobservice::{BlobService, MemoryBlobService},
    directoryservice::{DirectoryService, MemoryDirectoryService},
    pathinfoservice::{MemoryPathInfoService, PathInfoService},
};

pub fn gen_blob_service() -> impl BlobService + Send + Sync + Clone + 'static {
    MemoryBlobService::default()
}

pub fn gen_directory_service() -> impl DirectoryService + Send + Sync + Clone + 'static {
    MemoryDirectoryService::default()
}

pub fn gen_pathinfo_service() -> impl PathInfoService {
    MemoryPathInfoService::default()
}