()
| 1231 | |
| 1232 | #[test] |
| 1233 | fn test_turn_event_has_prompt() { |
| 1234 | let no_prompt = TurnEvent::new("s", HookType::TurnStart); |
| 1235 | assert!(!no_prompt.has_prompt()); |
| 1236 | |
| 1237 | let empty_prompt = TurnEvent::new("s", HookType::TurnStart).with_prompt(""); |
| 1238 | assert!(!empty_prompt.has_prompt()); |
| 1239 | |
| 1240 | let with_prompt = TurnEvent::new("s", HookType::TurnStart).with_prompt("hello"); |
| 1241 | assert!(with_prompt.has_prompt()); |
| 1242 | } |
| 1243 | |
| 1244 | #[test] |
| 1245 | fn test_turn_event_prompt_summary_short() { |
nothing calls this directly
no test coverage detected