()
| 704 | |
| 705 | #[test] |
| 706 | fn test_diff_builder_chain() { |
| 707 | let diff = Diff::new() |
| 708 | .with_files(vec!["test.rs"]) |
| 709 | .with_algorithm("patience") |
| 710 | .with_context(10) |
| 711 | .with_stat(true) |
| 712 | .with_no_color(true); |
| 713 | |
| 714 | assert_eq!(diff.files, vec!["test.rs"]); |
| 715 | assert_eq!(diff.algorithm, "patience"); |
| 716 | assert_eq!(diff.context, 10); |
| 717 | assert!(diff.stat); |
| 718 | assert!(diff.no_color); |
| 719 | } |
| 720 | |
| 721 | #[test] |
| 722 | fn test_diff_get_format_unified() { |
nothing calls this directly
no test coverage detected