diff options
| author | tv <tv@krebsco.de> | 2026-10-31 18:39:31 +0100 |
|---|---|---|
| committer | tv <tv@krebsco.de> | 2026-10-31 18:39:31 +0100 |
| commit | 2cba03fa6af4aeca176d69514603bce26b9c934a (patch) | |
| tree | 6324a328265d1f60e3ee4f170e61dc9a5d86a0e4 /src/document/mod.rs | |
| parent | a65c491cfc1b0fea8860ad64ab29a6ee8ad0faef (diff) | |
remake coordination use document, not automerge
Diffstat (limited to 'src/document/mod.rs')
| -rw-r--r-- | src/document/mod.rs | 13 |
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(); |
