()
| 960 | |
| 961 | #[test] |
| 962 | fn test_diff_stats_display() { |
| 963 | let stats = DiffStats { |
| 964 | files_changed: 3, |
| 965 | lines_added: 10, |
| 966 | lines_removed: 5, |
| 967 | }; |
| 968 | let s = format!("{}", stats); |
| 969 | assert!(s.contains("3 file")); |
| 970 | assert!(s.contains("10 insertion")); |
| 971 | assert!(s.contains("5 deletion")); |
| 972 | } |
| 973 | |
| 974 | #[test] |
| 975 | fn test_display_line_display_trait() { |
nothing calls this directly
no outgoing calls
no test coverage detected