()
| 196 | |
| 197 | #[test] |
| 198 | fn test_diff_stats_has_changes() { |
| 199 | let mut stats = DiffStats::new(); |
| 200 | assert!(!stats.has_changes()); |
| 201 | |
| 202 | stats.add_file(FileDiffStats::new("file.rs", 1, 0, 'M')); |
| 203 | assert!(stats.has_changes()); |
| 204 | } |
| 205 | |
| 206 | #[test] |
| 207 | fn test_diff_stats_max_path_length() { |