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