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