aboutsummaryrefslogtreecommitdiffstats
path: root/src/document
diff options
context:
space:
mode:
authortv <tv@krebsco.de>2026-10-31 18:39:31 +0100
committertv <tv@krebsco.de>2026-10-31 18:39:31 +0100
commit4a6403d0242cf730a3f864c8d26e0ba15a98fcf0 (patch)
treefddd3aee30d2874c8bb07dad29731892a1ff610a /src/document
parent88b3d05543561d5a34a4ff96b9a8ca9351e1a98d (diff)
remake coordination use document, not automerge
Diffstat (limited to 'src/document')
-rw-r--r--src/document/mod.rs13
1 files changed, 9 insertions, 4 deletions
diff --git a/src/document/mod.rs b/src/document/mod.rs
index 671bf5d..f11fef0 100644
--- a/src/document/mod.rs
+++ b/src/document/mod.rs
@@ -54,13 +54,18 @@ mod tests {
}
}
- /// Automerge is used only in `document` and `remake`; the rest of the node names
- /// its types as `document` re-exports them and works through `document`
- /// (`architecture.md`, The document).
+ /// Automerge is used only in `document` and in what remakes do to documents
+ /// (snapshots, replaying late writes, catching up, the kinds, quarantined writes);
+ /// the rest of the node, remakes' coordination included, names its types as
+ /// `document` re-exports them and works through `document` (`architecture.md`, The
+ /// document).
#[test]
fn automerge_stays_behind_document() {
let src = Path::new(env!("CARGO_MANIFEST_DIR")).join("src");
- let allowed = [src.join("document"), src.join("remake")];
+ let mut allowed = vec![src.join("document")];
+ for engine in ["snapshot", "delta", "catchup", "kind", "quarantine"] {
+ allowed.push(src.join("remake").join(format!("{engine}.rs")));
+ }
let mut files = Vec::new();
sources(&src, &mut files);
let mut found = Vec::new();