about summary refs log tree commit diff
path: root/tvix/store/src/tests/utils.rs
diff options
context:
space:
mode:
authorFlorian Klink <flokli@flokli.de>2024-03-27T11·26+0100
committerflokli <flokli@flokli.de>2024-03-28T07·58+0000
commit05d3f21eaf0834d44b6f32a49ae3276ebcb6571c (patch)
tree6ec53e9722d04ce872f4ef7eff08ae96ce3596d0 /tvix/store/src/tests/utils.rs
parentea257589d3e3fe4aa451bd5d7845b6feb456ae81 (diff)
refactor(tvix/store): drop proto/tests/{utils,grpc_pathinfoservice}.rs r/7794
As for grpc_pathinfoservice, we test this in the rstest-based tests,
with more implementations.
tests/utils.rs is unused now.

Change-Id: I62b192170d181e4fb432bf7dfff2057cb048b52c
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11279
Reviewed-by: Connor Brewster <cbrewster@hey.com>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/store/src/tests/utils.rs')
-rw-r--r--tvix/store/src/tests/utils.rs16
1 files changed, 0 insertions, 16 deletions
diff --git a/tvix/store/src/tests/utils.rs b/tvix/store/src/tests/utils.rs
deleted file mode 100644
index 040b7ee7f51f..000000000000
--- a/tvix/store/src/tests/utils.rs
+++ /dev/null
@@ -1,16 +0,0 @@
-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<BS, DS>(
-    blob_service: BS,
-    directory_service: DS,
-) -> Arc<dyn PathInfoService>
-where
-    BS: AsRef<dyn BlobService> + Send + Sync + 'static,
-    DS: AsRef<dyn DirectoryService> + Send + Sync + 'static,
-{
-    Arc::new(MemoryPathInfoService::new(blob_service, directory_service))
-}