diff options
author | Florian Klink <flokli@flokli.de> | 2024-03-27T11·11+0100 |
---|---|---|
committer | flokli <flokli@flokli.de> | 2024-03-28T07·02+0000 |
commit | 07a51c7dc9dd37205368eb0653e23e33cc04406f (patch) | |
tree | b328028d3219579ac3c10b558eefa999d2fed262 /tvix/castore | |
parent | 93dc5df957129b48e95c92c5c31bca3da5488208 (diff) |
feat(tvix/store): add rstest-based PathInfoService tests r/7788
This introduces rstest-based tests. We also add fixtures for creating some BlobService / DirectoryService out of thin air. To test a PathInfoService, we don't really care too much about its internal storage - ensuring they work is up to the castore tests. Change-Id: Ia62af076ef9c9fbfcf8b020a781454ad299d972e Reviewed-on: https://cl.tvl.fyi/c/depot/+/11272 Tested-by: BuildkiteCI Reviewed-by: Connor Brewster <cbrewster@hey.com>
Diffstat (limited to 'tvix/castore')
-rw-r--r-- | tvix/castore/src/blobservice/mod.rs | 2 | ||||
-rw-r--r-- | tvix/castore/src/directoryservice/mod.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/tvix/castore/src/blobservice/mod.rs b/tvix/castore/src/blobservice/mod.rs index e9cbd190623a..4ba56a4af731 100644 --- a/tvix/castore/src/blobservice/mod.rs +++ b/tvix/castore/src/blobservice/mod.rs @@ -14,7 +14,7 @@ mod object_store; mod sled; #[cfg(test)] -mod tests; +pub mod tests; pub use self::chunked_reader::ChunkedReader; pub use self::combinator::CombinedBlobService; diff --git a/tvix/castore/src/directoryservice/mod.rs b/tvix/castore/src/directoryservice/mod.rs index 997b47e502e4..e9ac73173988 100644 --- a/tvix/castore/src/directoryservice/mod.rs +++ b/tvix/castore/src/directoryservice/mod.rs @@ -9,7 +9,7 @@ mod memory; mod simple_putter; mod sled; #[cfg(test)] -mod tests; +pub mod tests; mod traverse; mod utils; |