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

                                                 

                                                                         
 
use crate::pathinfoservice::{MemoryPathInfoService, PathInfoService};
use std::sync::Arc;
use tvix_castore::{blobservice::BlobService, directoryservice::DirectoryService};

pub use tvix_castore::utils::*;

pub fn gen_pathinfo_service(
    blob_service: Arc<dyn BlobService>,
    directory_service: Arc<dyn DirectoryService>,
) -> Arc<dyn PathInfoService> {
    Arc::new(MemoryPathInfoService::new(blob_service, directory_service))
}