()
| 961 | |
| 962 | #[test] |
| 963 | fn test_diff_builder_chain() { |
| 964 | let diff = Diff::new() |
| 965 | .with_files(vec!["test.rs"]) |
| 966 | .with_algorithm("patience") |
| 967 | .with_context(10) |
| 968 | .with_stat(true) |
| 969 | .with_no_color(true); |
| 970 | |
| 971 | assert_eq!(diff.files, vec!["test.rs"]); |
| 972 | assert_eq!(diff.algorithm, "patience"); |
| 973 | assert_eq!(diff.context, 10); |
| 974 | assert!(diff.stat); |
| 975 | assert!(diff.no_color); |
| 976 | } |
| 977 | |
| 978 | #[test] |
| 979 | fn test_diff_get_format_unified() { |
nothing calls this directly
no test coverage detected