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

Function test_workflow_integration

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

Source from the content-addressed store, hash-verified

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

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