()
| 866 | |
| 867 | #[test] |
| 868 | fn test_turn_event_prompt_summary_truncated() { |
| 869 | let long_prompt = "a".repeat(200); |
| 870 | let event = TurnEvent::new("s", HookType::TurnStart).with_prompt(long_prompt); |
| 871 | let summary = event.prompt_summary(72).unwrap(); |
| 872 | assert!(summary.ends_with("...")); |
| 873 | assert!(summary.len() <= 72); |
| 874 | } |
| 875 | |
| 876 | #[test] |
| 877 | fn test_turn_event_prompt_summary_none() { |
nothing calls this directly
no test coverage detected