()
| 1054 | |
| 1055 | #[test] |
| 1056 | fn test_format_stat_graph_scaled() { |
| 1057 | // When total > max_width, scale down |
| 1058 | let graph = format_stat_graph(100, 50, 30); |
| 1059 | // 100 + 50 = 150, scaled to 30 |
| 1060 | // Should be approximately 20 + and 10 - |
| 1061 | assert!(graph.chars().filter(|&c| c == '+').count() <= 30); |
| 1062 | assert!(graph.chars().filter(|&c| c == '-').count() <= 30); |
| 1063 | } |
| 1064 | |
| 1065 | #[test] |
| 1066 | fn test_build_hunks_from_diff_empty() { |
nothing calls this directly
no test coverage detected