MCPcopy Create free account
hub / github.com/atomicdotdev/atomic / test_workflow_integration

Function test_workflow_integration

atomic-core/src/record/workflow/mod.rs:204–223  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

202
203 #[test]
204 fn test_workflow_integration() {
205 use crate::diff::Algorithm;
206
207 // This test demonstrates the intended workflow
208 let options = WorkflowOptions::new()
209 .with_algorithm(Algorithm::Patience)
210 .with_check_mtime(false);
211
212 // Verify options are configured
213 assert_eq!(options.algorithm(), Algorithm::Patience);
214 assert!(!options.check_mtime());
215
216 // Compare some content
217 let old = b"line1\nline2\n";
218 let new = b"line1\nmodified\n";
219
220 let result = compare_content(old, new, options.algorithm());
221 assert!(result.has_changes());
222 assert!(!result.is_binary);
223 }
224}

Callers

nothing calls this directly

Calls 4

compare_contentFunction · 0.70
with_check_mtimeMethod · 0.45
with_algorithmMethod · 0.45
algorithmMethod · 0.45

Tested by

no test coverage detected