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