()
| 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 | } |
nothing calls this directly
no test coverage detected