()
| 1073 | |
| 1074 | #[test] |
| 1075 | fn test_format_stat_graph_scaled() { |
| 1076 | // When total > max_width, scale down |
| 1077 | let graph = format_stat_graph(100, 50, 30); |
| 1078 | // 100 + 50 = 150, scaled to 30 |
| 1079 | // Should be approximately 20 + and 10 - |
| 1080 | assert!(graph.chars().filter(|&c| c == '+').count() <= 30); |
| 1081 | assert!(graph.chars().filter(|&c| c == '-').count() <= 30); |
| 1082 | } |
| 1083 | |
| 1084 | #[test] |
| 1085 | fn test_build_hunks_from_diff_empty() { |
nothing calls this directly
no test coverage detected