()
| 679 | |
| 680 | #[test] |
| 681 | fn test_truncate_long() { |
| 682 | let long = "a".repeat(300); |
| 683 | let result = truncate_for_display(&long, 50); |
| 684 | assert!(result.len() <= 54); // 47 + "..." |
| 685 | assert!(result.ends_with("...")); |
| 686 | } |
| 687 | |
| 688 | #[test] |
| 689 | fn test_truncate_exact() { |
nothing calls this directly
no test coverage detected