()
| 961 | |
| 962 | #[test] |
| 963 | fn test_parse_turn_end() { |
| 964 | let hook = make_hook(); |
| 965 | let input = br#"{"conversation_id": "c1", "status": "completed"}"#; |
| 966 | let event = hook.parse_event(HookType::TurnEnd, input).unwrap(); |
| 967 | assert_eq!(event.session_id, "c1"); |
| 968 | assert_eq!(event.event_type, HookType::TurnEnd); |
| 969 | } |
| 970 | |
| 971 | #[test] |
| 972 | fn test_parse_turn_end_with_model_and_status() { |
nothing calls this directly
no test coverage detected