()
| 53 | |
| 54 | #[test] |
| 55 | fn test_truncate_prompt_long() { |
| 56 | let s = "a".repeat(100); |
| 57 | let result = truncate_prompt(&s, 72); |
| 58 | assert!(result.len() <= 72); |
| 59 | assert!(result.ends_with("...")); |
| 60 | } |
| 61 | |
| 62 | #[test] |
| 63 | fn test_truncate_prompt_trims_whitespace() { |
nothing calls this directly
no test coverage detected