()
| 854 | |
| 855 | #[test] |
| 856 | fn test_parse_session_start() { |
| 857 | let hook = make_hook(); |
| 858 | let input = br#"{"conversation_id": "conv-123", "session_id": "sess-456"}"#; |
| 859 | let event = hook.parse_event(HookType::SessionStart, input).unwrap(); |
| 860 | // conversation_id is preferred |
| 861 | assert_eq!(event.session_id, "conv-123"); |
| 862 | assert_eq!(event.event_type, HookType::SessionStart); |
| 863 | } |
| 864 | |
| 865 | #[test] |
| 866 | fn test_parse_session_start_falls_back_to_session_id() { |
nothing calls this directly
no test coverage detected