about summary refs log tree commit diff
path: root/tvix/castore/src/fixtures.rs
diff options
context:
space:
mode:
authorYureka <tvl@yuka.dev>2024-07-24T18·50+0200
committeryuka <tvl@yuka.dev>2024-07-25T09·52+0000
commit5114504b675cf334dd8476a4a64eb77c5d405896 (patch)
tree8f3eb0e2fa9965b6d50ee443cb45d3e3a4638c69 /tvix/castore/src/fixtures.rs
parent6a988a1598ac81a06454f9b18d36e4e3ac33cac6 (diff)
test(tvix/castore/dirsvc): check for a pitfall with deduplicated dirs r/8413
Change-Id: I3cff2c2e8b2c8a2fd8d8074647d0d99a1db8e693
Reviewed-on: https://cl.tvl.fyi/c/depot/+/12034
Reviewed-by: flokli <flokli@flokli.de>
Tested-by: BuildkiteCI
Diffstat (limited to 'tvix/castore/src/fixtures.rs')
-rw-r--r--tvix/castore/src/fixtures.rs15
1 files changed, 15 insertions, 0 deletions
diff --git a/tvix/castore/src/fixtures.rs b/tvix/castore/src/fixtures.rs
index a206d9b7ddc6..3ebda64a818a 100644
--- a/tvix/castore/src/fixtures.rs
+++ b/tvix/castore/src/fixtures.rs
@@ -85,4 +85,19 @@ lazy_static! {
         ],
         ..Default::default()
     };
+    pub static ref DIRECTORY_D: proto::Directory = proto::Directory {
+        directories: vec![
+            DirectoryNode {
+                name: b"a".to_vec().into(),
+                digest: DIRECTORY_A.digest().into(),
+                size: DIRECTORY_A.size(),
+            },
+            DirectoryNode {
+                name: b"b'".to_vec().into(),
+                digest: DIRECTORY_B.digest().into(),
+                size: DIRECTORY_B.size(),
+            }
+        ],
+        ..Default::default()
+    };
 }