()
| 690 | |
| 691 | #[test] |
| 692 | fn test_parse_user_prompt() { |
| 693 | let hook = make_hook(); |
| 694 | let input = br#"{"session_id": "s1", "prompt": "Fix the bug", "model": "claude-sonnet-4-6", "provider": "anthropic"}"#; |
| 695 | let event = hook.parse_event(HookType::TurnStart, input).unwrap(); |
| 696 | assert_eq!(event.session_id, "s1"); |
| 697 | assert_eq!(event.prompt.as_deref(), Some("Fix the bug")); |
| 698 | } |
| 699 | |
| 700 | #[test] |
| 701 | fn test_parse_user_prompt_no_prompt() { |
nothing calls this directly
no test coverage detected