()
| 927 | |
| 928 | #[test] |
| 929 | fn test_parse_turn_start() { |
| 930 | let hook = make_hook(); |
| 931 | let input = br#"{"conversation_id": "c1", "prompt": "Fix the bug", "model": "gpt-4o"}"#; |
| 932 | let event = hook.parse_event(HookType::TurnStart, input).unwrap(); |
| 933 | assert_eq!(event.session_id, "c1"); |
| 934 | assert_eq!(event.event_type, HookType::TurnStart); |
| 935 | assert_eq!(event.prompt.as_deref(), Some("Fix the bug")); |
| 936 | } |
| 937 | |
| 938 | #[test] |
| 939 | fn test_parse_turn_start_no_prompt() { |
nothing calls this directly
no test coverage detected