()
| 982 | |
| 983 | #[test] |
| 984 | fn test_diff_get_format_priority() { |
| 985 | // name_only takes priority over stat |
| 986 | let diff = Diff::new().with_stat(true).with_name_only(true); |
| 987 | assert_eq!(diff.get_format(), DiffFormat::NameOnly); |
| 988 | |
| 989 | // name_status takes priority over stat but not name_only |
| 990 | let diff2 = Diff::new().with_stat(true).with_name_status(true); |
| 991 | assert_eq!(diff2.get_format(), DiffFormat::NameStatus); |
| 992 | } |
| 993 | |
| 994 | #[test] |
| 995 | fn test_diff_parse_algorithm_myers() { |
nothing calls this directly
no test coverage detected