()
| 1222 | |
| 1223 | #[test] |
| 1224 | fn test_truncate_result_long() { |
| 1225 | let s = "x".repeat(MAX_TOOL_RESULT_BYTES + 100); |
| 1226 | let result = truncate_result(&s); |
| 1227 | assert!(result.contains("truncated")); |
| 1228 | assert!(result.len() < s.len() + 100); |
| 1229 | } |
| 1230 | |
| 1231 | #[test] |
| 1232 | fn test_truncate_result_multibyte_never_panics() { |
nothing calls this directly
no test coverage detected