()
| 482 | |
| 483 | #[test] |
| 484 | fn test_builder_chaining() { |
| 485 | let opts = WorkflowOptions::new() |
| 486 | .with_algorithm(Algorithm::Patience) |
| 487 | .with_check_mtime(false) |
| 488 | .with_detect_moves(false) |
| 489 | .with_prefix("src/") |
| 490 | .with_max_file_size(1024u64) |
| 491 | .with_force_rediff(true) |
| 492 | .with_ignore_missing(true); |
| 493 | |
| 494 | assert_eq!(opts.algorithm(), Algorithm::Patience); |
| 495 | assert!(!opts.check_mtime()); |
| 496 | assert!(!opts.detect_moves()); |
| 497 | assert_eq!(opts.prefix(), "src/"); |
| 498 | assert_eq!(opts.max_file_size(), Some(1024)); |
| 499 | assert!(opts.force_rediff()); |
| 500 | assert!(opts.ignore_missing()); |
| 501 | } |
| 502 | |
| 503 | // Helper Method Tests |
| 504 |
nothing calls this directly
no test coverage detected