()
| 1001 | |
| 1002 | #[test] |
| 1003 | fn test_diff_get_format_priority() { |
| 1004 | // name_only takes priority over stat |
| 1005 | let diff = Diff::new().with_stat(true).with_name_only(true); |
| 1006 | assert_eq!(diff.get_format(), DiffFormat::NameOnly); |
| 1007 | |
| 1008 | // name_status takes priority over stat but not name_only |
| 1009 | let diff2 = Diff::new().with_stat(true).with_name_status(true); |
| 1010 | assert_eq!(diff2.get_format(), DiffFormat::NameStatus); |
| 1011 | } |
| 1012 | |
| 1013 | #[test] |
| 1014 | fn test_diff_parse_algorithm_myers() { |
nothing calls this directly
no test coverage detected