()
| 522 | |
| 523 | #[test] |
| 524 | fn test_parse_prompt_submit() { |
| 525 | let hook = make_hook(); |
| 526 | let input = |
| 527 | br#"{"session_id":"devin-123","prompt":"fix the bug","model":"claude-sonnet-4"}"#; |
| 528 | let event = hook.parse_event(HookType::TurnStart, input).unwrap(); |
| 529 | assert_eq!(event.session_id, "devin-123"); |
| 530 | assert_eq!(event.event_type, HookType::TurnStart); |
| 531 | assert_eq!(event.prompt.as_deref(), Some("fix the bug")); |
| 532 | } |
| 533 | |
| 534 | #[test] |
| 535 | fn test_parse_prompt_submit_no_prompt() { |
nothing calls this directly
no test coverage detected