()
| 942 | |
| 943 | #[test] |
| 944 | fn test_diff_builder_chain() { |
| 945 | let diff = Diff::new() |
| 946 | .with_files(vec!["test.rs"]) |
| 947 | .with_algorithm("patience") |
| 948 | .with_context(10) |
| 949 | .with_stat(true) |
| 950 | .with_no_color(true); |
| 951 | |
| 952 | assert_eq!(diff.files, vec!["test.rs"]); |
| 953 | assert_eq!(diff.algorithm, "patience"); |
| 954 | assert_eq!(diff.context, 10); |
| 955 | assert!(diff.stat); |
| 956 | assert!(diff.no_color); |
| 957 | } |
| 958 | |
| 959 | #[test] |
| 960 | fn test_diff_get_format_unified() { |
nothing calls this directly
no test coverage detected