tvl-depot/tvix/castore/src
Florian Klink 9586e5c30d refactor(tvix/castore): move src/fs/test into fuse mod
These tests only interact with the FUSE layer, and
import super::fuse to do its work.

However, this only works if the `fuse` feature is enabled, which we
don't do if we enable the `virtiofs` feature only, causing the tests
to fail:

```
❯ cargo test --no-default-features --features virtiofs
   Compiling tvix-castore v0.1.0 (/home/flokli/dev/nixos/code.tvl.fyi-submit2/tvix/castore)
error[E0432]: unresolved import `super::fuse`
  --> castore/src/fs/tests.rs:14:13
   |
14 | use super::{fuse::FuseDaemon, TvixStoreFs};
   |             ^^^^ could not find `fuse` in `super`
```

We move src/fs/tests.rs to src/fs/fuse/tests.rs
(and src/fs/fuse.rs to src/fs/fuse/mod.rs) to better structure this,
which will automatically cause both tests and code to only be built if
we have the `fuse` feature enabled.

Change-Id: I8fbbad3e4457e326bdfd171aa5c43d25d3187b5b
Reviewed-on: https://cl.tvl.fyi/c/depot/+/11715
Autosubmit: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Reviewed-by: tazjin <tazjin@tvl.su>
2024-05-26 19:46:47 +00:00
..
blobservice refactor(tvix/castore/blobservice/memory): use parking_lot RwLock 2024-05-11 15:09:33 +00:00
directoryservice fix(castore/directory/objectstore): fix responses for deduplicated dirs 2024-05-16 22:06:01 +00:00
fs refactor(tvix/castore): move src/fs/test into fuse mod 2024-05-26 19:46:47 +00:00
import refactor(tvix/castore): extract concurrent blob uploader 2024-05-20 15:21:46 +00:00
proto fix(tvix/castore/grpc): don't use explicit channel 2024-05-13 22:05:59 +00:00
tests refactor(tvix/castore/import): make module, split off fs and error 2024-04-20 14:14:19 +00:00
digests.rs feat(tvix/castore): impl Debug for B3Digest 2024-03-17 22:18:20 +00:00
errors.rs refactor(tvix/castore/error): drop From<PoisonError<T>> for Error 2024-05-11 15:09:33 +00:00
fixtures.rs refactor(tvix): condense long bytestrings 2023-10-27 07:37:26 +00:00
hashing_reader.rs refactor(tvix/castore/hashing_reader): migrate to rstest 2024-04-07 14:51:47 +00:00
lib.rs feat(tvix/castore): expose PathBuf too 2024-05-01 19:10:49 +00:00
path.rs feat(tvix/castore/path): implement PathBuf::from_host_path 2024-05-02 13:28:29 +00:00
tonic.rs refactor(tvix/castore/tonic): migrate to rstest 2024-04-07 14:51:47 +00:00