()
| 816 | |
| 817 | #[test] |
| 818 | fn test_format_stat_graph_scaled() { |
| 819 | // When total > max_width, scale down |
| 820 | let graph = format_stat_graph(100, 50, 30); |
| 821 | // 100 + 50 = 150, scaled to 30 |
| 822 | // Should be approximately 20 + and 10 - |
| 823 | assert!(graph.chars().filter(|&c| c == '+').count() <= 30); |
| 824 | assert!(graph.chars().filter(|&c| c == '-').count() <= 30); |
| 825 | } |
| 826 | |
| 827 | #[test] |
| 828 | fn test_build_hunks_from_diff_empty() { |
nothing calls this directly
no test coverage detected