File tree Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Expand file tree Collapse file tree 2 files changed +30
-0
lines changed Original file line number Diff line number Diff line change @@ -1262,6 +1262,9 @@ Error TrieVisitor::visit() {
1262
1262
if (auto Err = validateSubTrie (Root, /* IsRoot=*/ true ))
1263
1263
return Err;
1264
1264
1265
+ if (auto Err = visitSubTrie (" " , Root))
1266
+ return Err;
1267
+
1265
1268
SmallVector<SubtrieHandle> Subs;
1266
1269
SmallVector<std::string> Prefixes;
1267
1270
const size_t NumSlots = Root.getNumSlots ();
Original file line number Diff line number Diff line change
1
+ RUN: rm -rf %t
2
+ RUN: mkdir %t
3
+
4
+ RUN: llvm-cas --cas %t/cas --make-blob \
5
+ RUN: --data - </dev/null
6
+
7
+ RUN: llvm-cas --cas %t/cas --make-blob \
8
+ RUN: --data %s
9
+
10
+ RUN: llvm-cas --cas %t/cas --dump | FileCheck %s
11
+
12
+ // check the dump format.
13
+ CHECK: index:
14
+ CHECK-NEXT: hash-num-bits=
15
+ CHECK-NEXT: root addr=
16
+ // it should has at least one index
17
+ CHECK-NEXT: - index=
18
+
19
+ // two records
20
+ CHECK: record
21
+ CHECK-NEXT: - addr=
22
+ CHECK-NEXT: - addr=
23
+
24
+ // both should be small enough to be in data pool
25
+ CHECK: pool:
26
+ CHECK-NEXT: - addr=
27
+ CHECK-NEXT: - addr=
You can’t perform that action at this time.
0 commit comments